Re: [PHP] php mail() and sendmail/smtp

2010-12-02 Thread Daniel P. Brown
2010/12/2 Michael Crowl :
>
> Possible solutions?  I'm a little frazzled and a little undereducated here.

Use the under-appreciated fifth paramter in mail() to pass the -f
flag to sendmail, like so:



-- 

Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php mail() and sendmail/smtp

2010-12-02 Thread Peter Lind
2010/12/2 Michael Crowl :

* snip *

> Also, we
> have Redmine running on the same server, and it sends admin emails out just
> fine - however, I don't think it calls sendmail directly like our PHP
> install, but connects directly to the local SMTP server.

Sounds like a solution to me: connect to port 25 on the mail server
instead of going through sendmail. Plenty of good mail libraries out
there (swiftmailer, phpmailer come to mind).

Regards
Peter

-- 

WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php