I am trying to work through some of the Wellington and Thomson book on PHP and MySQL - I am trying to process a mail feedback form and I get the following error:
Warning: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in C:\Documents and Settings\RLane\My Documents\Web Sites\Localhost\InDevelopment\Wellington\Source\04\processfeedback.php on line 14
In the php.ini file I modified the mail settings to be:
[mail function]
; For Win32 only.
SMTP = mail.mind.net
; For Win32 only.
sendmail_from = xyz@mind.net
The form uses the following code to process the form - what do I have broken?
//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$feedback=$_POST['feedback'];
$toaddress = 'xyz@mind.net';
$subject = 'Feedback from web site';
$mailcontent = 'Customer name: '.$name."\n"
.'Customer email: '.$email."\n"
."Customer comments: \n".$feedback."\n";
$fromaddress = 'From: [email]xyz@mind.net[/email]';
mail($toaddress, $subject, $mailcontent, $fromaddress);
😕