Dear Andrew,

So what is the solution??

Giro

""Andrew Parry"" <[EMAIL PROTECTED]> wrote in message
99l2s4$3qo$[EMAIL PROTECTED]">news:99l2s4$3qo$[EMAIL PROTECTED]...
> Hi,
>
> Background:
> -------------
> I'm developing a web application using PHP, and want to automatically mail
> users on certain events (eg. new user logging in, etc).
>
> My web host does not provide dial-up and SMTP services, so my mail host is
> at a different domain to my web site.
>
> Problem:
> ---------
> If I use the PHP mail() function after calling ini_set("SMTP",
> "my.smtp.server") and ini_set("sendmail_from", "user@my_domain"), mail
gets
> sent but the From details are set to www@<web_host_domain_name> which is
not
> what I want.
>
> I've tried using sockets and sending directly to the SMTP server, but when
I
> do RCPT TO:<user@my_domain> the server sends back 550 <user@my_domain>
> Relaying denied.
>
> The connection (HELO) and MAIL FROM commands are accepted by the mail
host.
>
> I'm not a mail guru, and only have a very basic understanding of SMTP, but
I
> would have thought that if my mail host will process messages from my web
> host, it should also process messages sent via a socket connection.
>
> I realise this is not a PHP problem, but someone else here has probably
come
> across the same thing, so it's worth a shot. :-)
>
> Any help very gratefully received.
>
> Andrew Parry
> Parrible Limited
> [EMAIL PROTECTED]
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to