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?
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
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.
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
Thank you, GreHead. I'll check it out.
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]
Forgot one more screenshot.
I've tested the form directly from using Chronoform's link and ran another test. I have yet to receive an email.
Suggestions?
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
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'?
Hi toad,
It's there when I check your image?
Bob
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.
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
After still more testing and checking for any errors, I still cannot get the form to send to the correct user.
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