On Tue, 27 Jul 2004 22:07:52 +0100, Enda Nagle - Lists <[EMAIL PROTECTED]> wrote: > Hi Guys, > > Iım using PHPıs mail() function on several sites, but have difficulty > sometimes with the mails being tagged as SPAM. > > I want to have the Return-Path set to the site admin, but canıt see where to > do this. > > I know that it can be done at server root level but I canıt really do that > as its a shared server. > > I do have my own php.ini file for my site, but can only see the following > vars: > > mail function] > ; For Win32 only. > SMTP = localhost > > ; For Win32 only. > sendmail_from = [EMAIL PROTECTED] > > ; For Unix only. You may supply arguments as well (default: "sendmail -t > -i"). > sendmail_path = /usr/sbin/sendmail -t -i > > Iım working off a Linux box, so presumably I canıt use the sendmail_from > variable?
Nope, that's only for windows. > > I also tried to set the following variable in the headers for the mail: > > $headers .= "X-Return-path: ME <[EMAIL PROTECTED]>\r\n"; This should work if you put it in the right place in the call. Try just \n as well. If it doesn't work, try using a mailing class such as: http://pear.php.net/package/Mail > > Any help appreciated, > > Thanks > > Enda > -- > > - + - + - + - + - + - + - + - + - + - + - + - + - > > Enda Nagle > +353 86 168 0774 > [EMAIL PROTECTED] > www.category9.com > > - + - + - + - + - + - + - + - + - + - + - + - + - > > !DSPAM:4106c542182671082813648! > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php