Posted by noodles on 01/26/06 21:04
Mike" <mike@mjfcadsolutions.co.uk> wrote in message
news:1138288409.752754.72680@o13g2000cwo.googlegroups.com...
>I have the following:-
>
> <?php
> $to = "mike@mjfcadsolutions.co.uk";
> $subj = "Test";
> $mess = "This is a test message";
> mail($to,$subj,$mess);
> ?>
>
> I'm running it locally to test. I have changed the php.ini file as
> follows...
>
> [mail function]
> ; For Win32 only.
> SMTP = mail.btinternet.com
>
> ; For Win32 only.
> sendmail_from = mike@mjfcadsolutions.co.uk
>
> ; For Unix only. You may supply arguments as well (default: "sendmail
> -t -i").
> ;sendmail_path =
>
> Heres the error...
>
> Warning: mail() [function.mail]: SMTP server response: 530
> authentication required - Your email could not be sent. To fix this you
> must make a simple change to your email (known as SMTP authentication).
> For advice visit www.btyahoo.com/smtp or call 0800 328 9968 in
> C:\wamp\www\yourlifelog\email.php on line 6
>
>
> I've set the authentication for use in Outlook but how can I do this
> for scripts?
>
> Thanks
>
> Mikee
AFAIK mail() doesn't handle SMTP authentication, perhaps try php mailer
instead
http://phpmailer.sourceforge.net/
Ive used that before when sending through SMTP servers that require auth.
--
******************************************************
watch the spam trap!
free image hosting - www.seemyimages.co.uk
******************************************************
[Back to original message]
|