hi everyone ! im new to php script, hope u guys able to help me. Thank you in advance. Im using localhost xampp, i have activate my smtp and set smtp_port to 25 , smtp = localhost.
when i run the script , error message show:
Notice: Undefined variable: email in C:\xampp\htdocs\sendmymail.php on line 54
Notice: Undefined index: in C:\xampp\htdocs\sendmymail.php on line 54
Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in C:\xampp\htdocs\sendmymail.php on line 56
newsletter sent to:
here is my php script, i have highlighted line 56 & 54 :
<?php include ("ch19_include.php"); if (!$_POST) { //haven't seen the form, so display it echo " Send a NewsletterSend a Newsletter
Subject:
<input type=\"text\" name=\"subject\" size=\"30\"
Mail Body:
"; } mysqli_free_result($result); mysqli_close($mysqli); } } ?>