NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: OT: Possible to send email to _specific_ exchange server?

Dan Cech dcech at phpwerx.net
Fri Aug 27 17:15:43 EDT 2004


maymay wrote:
> Thank you all for the quick replies.
> 
> From the responses to my question, I gather that there isn't a way to
> explicitly state from *within a PHP script* that I want mail to go to a
> specific mail exchange server. Is that accurate?

No, only if you want to use builtin the 'mail' command.  The 
functionality you are looking for is implemented in PHPMailer, which 
includes its own socket-based SMTP client.

http://phpmailer.sourceforge.net/

Specifically look at the second example on this page:

http://phpmailer.sourceforge.net/extending.html

Dan



More information about the talk mailing list