Warning: mail() [function.mail]: SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in C:\wamp\www\Chapter_1\report.php on line 2
Here is my php script
<html> <head> <title>Aliens Abducted Me - Report an Abduction</title> </head> <body> <h2>Aliens Abducted Me - Report an Abduction</h2> <?php $name = $_POST['firstname'] . ' ' . $_POST['lastname']; $how_many = $_POST['howmany']; $when_it_happened = $_POST['whenithappened']; $how_long = $_POST['howlong']; $alien_description = $_POST['aliendescription']; $what_they_did = $_POST['whattheydid']; $fang_spotted = $_POST['fangspotted']; $email = $_POST['email']; $other = $_POST['other']; $to = 'mulroyphp@yahoo.com'; $subject = 'Aliens Abducted Me - Abduction Report'; $msg = "$name was abducted $when_it_happened and was gone for $how_long. \n" . "Number of aliens: $how_many \n" . "Alien description: $alien_description\n" . "What they did: $what_they_did\n" . "Fang spotted: $fang_spotted\n" . "Other comments: $other"; mail($to, $subject, $msg, 'From: ' . $email); echo $name . ', thanks for submitting the form. <br />'; echo 'You were abducted ' . $when_it_happened; echo ' and were gone for ' . $how_long . '<br />'; echo 'Number of aliens: ' . $how_many . '<br />'; echo 'Describe them: ' . $alien_description . '<br />'; echo 'The aliens did this: ' . $what_they_did . '<br />'; echo 'Was Fang there? ' . $fang_spotted . '<br />'; echo 'Other comments: ' . $other . '<br />'; echo 'Your email address is: ' . $email; ?> </body> </html>
Here is my php.ini (From what I got off google I need to change this around?)
[mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = youremail@yourdomain
If this needs to be moved Web Servers please do so :]
Regards,
D.Mulroy
This post has been edited by D.Mulroy: 15 April 2011 - 10:26 AM

New Topic/Question
Reply




MultiQuote




|