Auto Responder & Email Template

Post any questions you may have here

Auto Responder & Email Template

Postby artistjewel on Wed Mar 26, 2008 5:31 am

I have had a good look around the forums but haven't been able to get this working.

So here is what I want to do:

In one of my forms I want the results to be emailed to me but also the submitter to receive my custom email template automatically after submitting the form.

Laurel
artistjewel
Junior Boarder
 
Posts: 20
Joined: Tue Sep 25, 2007 6:25 am

Re:Auto Responder & Email Template

Postby GreyHead on Wed Mar 26, 2008 5:40 am

Hi Laurel,

You can't do exactly that but you can do something that has the same effect.

Send the results to yourself as usual, then use the 'OnSubmit after email' box to send an email to the submitter. There was an example here that includes the code to do that.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3788
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Auto Responder & Email Template

Postby artistjewel on Wed Mar 26, 2008 5:59 am

Can that include css? Or can we only use a basic html message?

Also, if we can't get this to work we thought about setting up an auto responder within our mail program to handle it, but the reply to email is ours, is there some way to correct that so on reply it goes to the submitter?
artistjewel
Junior Boarder
 
Posts: 20
Joined: Tue Sep 25, 2007 6:25 am

Re:Auto Responder & Email Template

Postby GreyHead on Wed Mar 26, 2008 1:30 pm

Hi Laurel,

You can include css wrapped in style tags or attributes - but please test first. Some mail readers are picky about what css they make use of.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3788
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Auto Responder & Email Template

Postby artistjewel on Wed Mar 26, 2008 2:26 pm

Hi Bob,

Is there any way to get the results email to come through with the from address being the submitters email address, so when we hit reply it goes to them and not back to us?

Laurel
artistjewel
Junior Boarder
 
Posts: 20
Joined: Tue Sep 25, 2007 6:25 am

Re:Auto Responder & Email Template

Postby GreyHead on Wed Mar 26, 2008 2:56 pm

Hi Laurel,

You can try it but I don't recommend it. The ReplyTo address is checked by many ISPs to make sure that it matches your domain. If it doesn't the email may be marked as 'relayed' and treated as spam. (Remember that this is actually an email from your website, not from the submitter.)

You can add a ReplyTo link in the email and say click here to reply that will have a similar result. Not quite so convenient but you have a better chance of getting the emails in the first place.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3788
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Auto Responder & Email Template

Postby AdamG on Mon Mar 31, 2008 10:58 pm

Hi Bob,

What if I want the email to be sent only to the submitter?
I don't want a copy, I have tried to remove my own email address but it says that it requires an Email Address, Email Subject and From Name, From Address. I have all of that, but the Email address field is empty, instead I filled in the one in special fields.

Do I have to change the code or is there a way to make it work?


Adam
AdamG
Fresh Boarder
 
Posts: 16
Joined: Wed Mar 19, 2008 1:22 pm

Re:Auto Responder & Email Template

Postby GreyHead on Mon Mar 31, 2008 11:06 pm

Hi Adam,

There is a buglet in the current ChronoForms that requires an email address in the General Tab even if there is a field specified in Special Fields. Any email address with the correct format will do so you can add noreply@mydomain.com or user@example.com . . .

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3788
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Auto Responder & Email Template

Postby AdamG on Mon Mar 31, 2008 11:27 pm

Hi Bob,

I want to add noreply@mydomain.com of curse, but I will still recive it (forwards to info@).
If i put user@example.com or some other unkown email address it will look unproffessional.

Im gonna try to remove the email field from the mysql database to try if chrono works without an email, if it does then I will just simply add an javascript code that checks if there is a special field.

Adam<br><br>Post edited by: AdamG, at: 2008/03/31 19:38
AdamG
Fresh Boarder
 
Posts: 16
Joined: Wed Mar 19, 2008 1:22 pm

Re:Auto Responder & Email Template

Postby AdamG on Tue Apr 01, 2008 11:25 pm

Hi all,

Thank god I don't take No for an answer.

It's fixed. Change line 164 in admin.chronocontact.html.php

Original:
Code: Select all
if ((form.extraemail.value == '')||(form.emailsubject.value == '')||... the line goes on


Simply change to this:
Code: Select all
if ((form.extraemail.value == '' && form["params[emailfield]"].value == '')||(form.emailsubject.value == '')||... the line goes on
If you want you can also change the Email subject, From name and From email. It's the same principal! But be careful, I only tested the Email field.

Adam
AdamG
Fresh Boarder
 
Posts: 16
Joined: Wed Mar 19, 2008 1:22 pm

Re:Auto Responder & Email Template

Postby GreyHead on Wed Apr 02, 2008 12:29 am

Hi Adam,

Good fix thank you.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3788
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Auto Responder & Email Template

Postby Tschoko on Tue Apr 22, 2008 11:47 pm

Hi,
Somebody of the submitter want a copy of their mail to me and somebody want it not, so i think it is usefull to make a checkbox where you can choose "yes you get an copy of your email" or " No, you get no copy.."

How can i this realize in Chronoforms?

thx
Tschoko
Fresh Boarder
 
Posts: 6
Joined: Tue Apr 22, 2008 4:43 pm

Re:Auto Responder & Email Template

Postby GreyHead on Wed Apr 23, 2008 12:07 am

Hi Tschoko,

In the OnSubmit before email box you need to check the value of the check box and set $rows[0]->emailresults = 0; to suppress the email.

Note: this will only work on the latest releases of ChronoFroms.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3788
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Auto Responder & Email Template

Postby Tschoko on Wed Apr 23, 2008 12:42 am

Thx,
I have the latest release of ChronoForms.
Can you explain in detail, if you have a little bit time, plz?
Thanks a lot!

this is my box ;)
Code: Select all
<input type="checkbox" name="copy" id="copy" tabindex="512" />
Tschoko
Fresh Boarder
 
Posts: 6
Joined: Tue Apr 22, 2008 4:43 pm

Re:Auto Responder & Email Template

Postby GreyHead on Wed Apr 23, 2008 2:09 am

Hi Tschoko,

The checkbox will return a value of either 0 or 1 in $_POST['copy'] so in your OnSubmit before email code needs to be something like this:
Code: Select all
<?php
if ( !$_POST['copy'] ) {
  $rows[0]->emailresults = 0;
}
?>
and this should do the trick (not tested so may be buggy).

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3788
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Next

Return to ChronoForms Questions & Answers

Who is online

Users browsing this forum: No registered users and 8 guests