You are here: mail() « All PHP « IT news, forums, messages
mail()

Posted by Mike on 01/26/06 17:13

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация