Forums

Referral Form to Email to Person Being Referred

toad 20 Aug, 2014
I have an interest in creating a Referral form with these fields:

Your Name
Your Email Address
Refer Full Name
Refer Email Address

What I would like is to do is to create an email to the Administrator that says the following:
Someone has made a referral!
(details of the referral)

I would also like to have an automated email sent to the person being referred (Refer Email Address):
You have been referred to receive a 15% discount at this store. Just enter code X$d8sdks to receive your 15% discount.

Plus, I would like to have an automated email sent to the person who made the referral (Your Email Address) with a message:
Thank you for referring (company name) to (Refer Full Name).

To show our appreciation, you are entitled to a 15% discount on your next purchase at (company name) by using this code: $399sjd

Is there a way for Chronoforms to do this?
GreyHead 21 Aug, 2014
Hi toad,

Yes, ChronoForms can do all of that. There are FAQs for sending emails to the Admin and to the User.

Which part are you having problems with?

Bob
toad 21 Aug, 2014
I guess the making of the all of the automated emails. I'll check out the FAQ video on creating emails and see if I can figure it out.
GreyHead 22 Aug, 2014
Hi toad,

For the emails use the To Email box for the one to the admin and add their email address there.

For the others use the Dynamic To box and add the appropriate input names there e.g. refer_email_address and your_email_address.

Bob
toad 22 Aug, 2014
Thank you, GreHead. I'll check it out.
toad 28 May, 2015

Hi toad,

For the emails use the To Email box for the one to the admin and add their email address there.

For the others use the Dynamic To box and add the appropriate input names there e.g. refer_email_address and your_email_address.

Bib



To add to this inquiry, I have a drop down of departments for the user to select from. Depending upon the department the user chooses, the email needs to be sent to that specific department. How can I set up a customized method to send the form to a certain email depending upon the department chose?

For example, if they choose "Department A", it will go to depta@foo.com.
If they choose "Department B", it will go to deptb@foo.com, etc.
toad 28 May, 2015
So to update, I'm using Joomla 1.5, Chronoforms V.4 and have followed these instructions: https://www.chronoengine.com/faqs/52-cfv4/cfv4-emails/2603-how-can-i-send-an-email-to-different-addresses.html with the 'CFV4 version'.

I have ran a test and still have not received the email.

Screenshots indicate my settings.
[attachment=0]select-options.PNG[/attachment]
[attachment=1]email-setupA.PNG[/attachment]
[attachment=2]email-recipients.gif[/attachment]
toad 28 May, 2015
Forgot one more screenshot.
toad 28 May, 2015
I've tested the form directly from using Chronoform's link and ran another test. I have yet to receive an email.

Suggestions?
GreyHead 28 May, 2015
Hi Toad,

First, please do not use the Dynamic From Email box - this is the most frequent cause of emails being marked as possible spam and being dropped. Use a Static From Email with an email address that matches the site domain - or the SMTP server login email.

If that doesn't resolve the problem please add a Debugger action and copy and paste the debug output here.

Bob
toad 28 May, 2015
Review the attachment:
[attachment=0]debugger.gif[/attachment]

It should be sending to not only the 'mmastro' address, but also to the email address that 'em4' refers to, which I don't think I see in the 'Debugger'?
GreyHead 29 May, 2015
Hi toad,

It's there when I check your image?

Bob
toad 29 May, 2015
But it's not emailing to the correct email address when the user clicked on the specific personnel department. They all defer to 'mmastro' instead of the correct one.
GreyHead 30 May, 2015
Hi Toad,

I have no idea which email em4 is as you've deleted that from the images. The 'email_to _use' email is in the To email list, so if that has the wrong value I guess that you need to debug the PHP.

Bob
toad 04 Jun, 2015
After still more testing and checking for any errors, I still cannot get the form to send to the correct user.
GreyHead 04 Jun, 2015
Hi toad,

I'm sorry but it isn't possible to help without information about the code you are using and the debug results you are getting. As far as I can tell from what you posted it is working correctly - but so much is crossed out that it is really hard to tell.

Bob
This topic is locked and no more replies can be posted.