PDA

View Full Version : From: Nobody [mailto:nobody@host18.hrwebservices.net]


4ctekcom
10-25-2001, 12:43 AM
How can I fix this email address?


From: Nobody [mailto:nobody@host18.hrwebservices.net]

I use a php mailto form, that sends this. Any suggestions?

thanks,

Steve Parlin

get_staked
10-25-2001, 01:19 PM
Looks like you need to set your return address in your script somewhere. Without seeing the script, we won't be much use for you. :-)

El_Nino
10-25-2001, 01:29 PM
I know there have been examples posted on the forum before on how to fix it. Do a search and you should be able to come up with something.

MWilliams
10-25-2001, 02:23 PM
This is the basic format I use for php mailto script:

$mailto = "recipient@somedomain.com";
$subject = "Your subject of the email";";
$message = "Some basic message or whatever";
$from = "sender@somedomain.com";

mail("$mailto","$subject","$message","From: $from");

This seems to get the message to show the senders email in the actual email field instead of the NOBODY.

Assuming you are getting the info from an online form, just make the $from like this:

$from = $Email;

Where $Email is whatever your input field name is on the form.

Hope this helps.