|
| A R C H I V E D M E S S A G E |
|
Subject: How do I modify the sendmail script to do this? |
| Posted: 05/18/2004 at 4:07:08 pm |
| By: santino |
| It shows this
print MAIL "From: $formdata{'email'}\n";
which shows up in my email as From: email@email.com
I would like it to show like this
John Doe [email@email.com] like normal emails do. How do I do that? I tried this, but I did something wrong
print MAIL "From: $formdata{'firstname'} $formdata{'lastname'} $formdata{'email'}\n";
Thanks
| |
|
|
Subject: Re: How do I modify the sendmail script to do this? |
| Posted: 05/18/2004 at 8:28:24 pm |
| By: santino |
| The main reason I want to do this, is I want to have it post to a log, but also add the prospect into my autoresponder account with royal-responder. So what I have it do is send the results to my autoresponder email address, but it only captures the email address. If I could have the firstname and lastname get put in the From field of the email, the autoresponder will use that as their first and last name and I can personalize the autoresponder messages.
Thanks Seth | |
|
|
Subject: Re: How do I modify the sendmail script to do this? |
| Posted: 05/19/2004 at 6:12:36 am |
| By: Seth Knorr |
| THE PROPER PERL CODE WOULD BE:
print MAIL "From: \"$formdata{'firstname'} $formdata{'lastname'}\" <$formdata{'email'}>\n";
HOWEVER, on some servers for whatever reason when you properly format the name and email, it just does not work period, so some (depending on server configuration) will be unable to use the first and last name part.
Seth | |
|
|