Hi, i've configure few lines in php.ini [mail function]
SMTP = smtp.gmail.com
smtp_port = 587
sendmail_from =
myemail@gmail.comafter i saved and restart wampserver, i try to run the following php script to test to send an email. Here's the simple script.
<?php
// The message
$message = "Line 1\nLine 2\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
// Send
mail('myemail@yahoo.com', 'My Subject', $message);
?>
after i run this script, which supposedly be sending an email to
myemail@yahoo.com as a testrun, but instead of receiving the testrun email, i get these error:
Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first 30sm16179828wfc.6 in C:\wamp\www\mailtest.php on line 9
-------------------------------------------------------------------------
line 9 = mail('myemail@yahoo.com', 'My Subject', $message);
What steps that i missed out? Or what mistake that i've made?
plz help
![sad smiley sad smiley](./mods/smileys/images/smilie2.gif)