PDA

View Full Version : My name in mail send via CGI


bugaco
02-14-2001, 12:39 PM
Hi,

I am trying to send email as the part of CGI script
I am using 'mailto' command, but if it is executed I receive email from Nobody ...

Also, is there a way for CGI script to run at least with my group vs. nobody, as I would like to use it to write/read some files ...

richmedium
02-27-2001, 01:22 AM
Although I should point to to SMTP standards doc here is an easy way -- modify your From field via the scipt like so (in PHP):

<?
$result=mail("to@someone.com", "This is a subject", "This is a body", "From: My Name <my@email.com>\nnReply-To: my@email.com");
?>