|
| A R C H I V E D M E S S A G E |
|
Subject: Changing who the email is From |
| Posted: 11/17/2003 at 9:03:34 am |
| By: Danny340 |
| Is there a way to change who the Email is from in outgoing emails, I got this reply from my ISP.
"You need to make sure that you provide a FROM email address witin your script, and that the email address you use exists as a pop3 account on the mail server."
| |
|
|
Subject: Re: Changing who the email is From |
| Posted: 11/17/2003 at 3:28:08 pm |
| By: Seth Knorr |
| Yes, follow steps below.
1. In the bizmail.cgi file update the line:
$sendto{"1"} = "mail\@yourdomain.com";
Replace: mail\@yourdomain.com with your actual email. Make sure you remember the \ before the @ sign.
2. on the form set:
<input type="hidden" name="sendto" value="1">
And you should be all set. There is even more information in the readme.txt file.
Seth
| |
|
|
Subject: Re: Changing who the email is From |
| Posted: 11/18/2003 at 2:17:44 pm |
| By: Danny340 |
| Thanks for your reply.
But I think you misunderstood my question. As I understand it the above will change the address which the email is sent to. What I want do do is put a from field in the email,which is an pop3 email owned by myself.
For example I want the email to go to Danny@buildsure.co.uk but to be from forminfo@buildsure.co.uk.
I've got a feeling that it is something in sendmail.cgi which need to be changed.
| |
|
|
Subject: Re: Changing who the email is From |
| Posted: 11/18/2003 at 7:33:57 pm |
| By: Seth Knorr |
| Well yes, if using sendmail, you could do this.
1. open sendmail.cgi
2. Go to line 8 of this file then type:
$SENDTOTHIS = "forminfo\@buildsure.co.uk";
3. Then hit enter, that should be the only code on line 8.
4. Then go to what is now line 17.
and replace the line:
print MAIL "From: $formdata{'email'}\n";
#WITH
print MAIL "From: $SENDTOTHIS\n";
4. Re upload sendmail.cgi AND YOU ARE SET. just make sure you do it exactly as show. Also make sure you remember the \ befor the @ in your email.
Seth | |
|
|
Subject: Re: Changing who the email is From |
| Posted: 11/20/2003 at 4:25:14 am |
| By: Danny340 |
| Thanks for your help Seth, but it is still not working.
I've a feeling it's down to my ISP.
The script is writing the info to the data file but not doing any posting of emails.
I will get my ISP to check it out.
Cheers | |
|
|