Hey Guys, Thanks for all your help and suggestions on this. I'm a contractor so trying to get the SMTP server configured right ended up being tricky - especially since I'm not actually on site! I did however try the SwiftMailer package and it worked like a charm!!
Now to code it into the app! Thanks again, I really appreciate this group and the willingness to share your experience and wisdom! Mike -----Original Message----- From: Justin Carmony [mailto:[email protected]] Sent: Tuesday, September 15, 2009 11:03 AM To: [email protected] Cc: [email protected] Subject: Re: [UPHPU] PHP Email through IIS I really highly recommend SwiftMailer, an open source php email library. Personally, I've found PHP's inherent mail functionality to be a little... difficult. Its not nearly as straightforward as one would hope. Check out Swift, it supports SMTP, batch mailings, etc. http://swiftmailer.org/ Justin On Sep 15, 2009, at 10:26 AM, Mike Mackrory wrote: > Hey Guys, > > Here's my situation... I'm trying to enable an app to send emails via > an SMTP Server. > > I have php.ini setup with the ip address of the server, and I'm using > the mail function to send the message. > > My php.ini settings are: > > [mail function] > ; For Win32 only. > SMTP = 172.16.1.2 > smtp_port = 25 > > ; For Win32 only. > sendmail_from = [email protected] > > It appears that the code runs perfectly, but the I get thie following > message back, which I'm assuming originates at the SMTP server... > > PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 > Unable to relay in C:\Inetpub\wwwroot\email_test.php on line 6 > > Has anyone had any experience with this? Obviously not using a > windows environment would be the right answer, but I'm not the one who > gets to make that decision. > > The network admin I'm working with is wondering if I need a password > or anything. > > Thanks! > > Mike > > _______________________________________________ > > UPHPU mailing list > [email protected] > http://uphpu.org/mailman/listinfo/uphpu > IRC: #uphpu on irc.freenode.net _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
