PDA

View Full Version : Alternative Email to Sender



ConnorP
06-Aug-2008, 02:26 PM
Hi,

I have the formail installed and working just fine. It sends the results to 2 different admin personnel as required. I would also like to be able to send a welcome email to the person who submitted the form. This email would be generic, but would have different content to the actual for results which I recieve everytime someone correctly submits a form.

One way I went about achieving this was to create another email account on our server and nominate that email as one the recipients in the formail code:

$TARGET_EMAIL = array(EMAIL_NAME."@url\.com$",
"^email1@url\.com$",
"^email2@url\.com$",
"^email3@url\.com$");

(I have changed the values here to generic ones for illustration purposes)

The next step was to set up an autoresponder on email3@url.com to reply to all incoming mail. I entered the body of my welcome letter in there and expected that it should work.

I also edited the html form to reflect the new recipient email address.
However it still only sends the results to email 1 and email 2, so i am left scratching my head.

There must be another way of doing this wherebly I can lift the email address of the person submitting the form and compose a reply to that address with a specified Subject Line and email text body.

I would welcome your suggestions.

Thanks in advance.

ConnorP

ginger23
06-Aug-2008, 09:00 PM
You can use a FormMail autoresponder, although from what I've read in the Tectite documentation, these can be a security risk as far as spambots, but it is offered and the instructions are here:

http://www.tectite.com/fmhowto/autorespond.php

As far as your method, I'm not sure what the problem is except that if all of your email addresses are on the same domain, you don't need to specify each one separately in $TARGET_EMAIL, you can just use:



$TARGET_EMAIL = array(EMAIL_NAME."@yourhost\.com$");




ginger