[UPHPU] PHP Email through IIS
Mike Mackrory
mike at echovue.com
Tue Sep 15 11:03:51 MDT 2009
Thanks David - actually, changing my search from mail to smtp server to
authenticate to smtp server, I may have found a viable solution!!
http://email.about.com/od/emailprogrammingtips/qt/et073006.htm
I'll let you know if it works!
Mike
-----Original Message-----
From: uphpu-bounces at uphpu.org [mailto:uphpu-bounces at uphpu.org] On Behalf Of
David
Sent: Tuesday, September 15, 2009 10:57 AM
To: uphpu at uphpu.org
Subject: Re: [UPHPU] PHP Email through IIS
Unless the SMTP server is set up as an open relay (something that's usually
discouraged), you'll probably need to authenticate somehow.
I've never had to use a remote SMTP server, though, so I can't help you
there. Sorry.
David Landry
On Tue, Sep 15, 2009 at 10:26 AM, Mike Mackrory <mike at echovue.com> 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 = administrator at xxxxxxxx.com
>
> 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
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
_______________________________________________
UPHPU mailing list
UPHPU at uphpu.org
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net
More information about the UPHPU
mailing list