this question has answer here:
i want send email myid@mysite.com. have configured wamp per this stackoverflow link below above code works fine send using gmail account not using other domain account e.g. want send myid@mysite.com.
please guide me.
in php.ini have made following changes
<?php smtp=smtp.gmail.com smtp_port=587 sendmail_from = my-gmail-id@gmail.com sendmail_path = "\"d:\wampp\sendmail\sendmail.exe\" -t" ?> in sendmail.ini have changed code
<?php [sendmail] smtp_server=smtp.gmail.com smtp_port=587 error_logfile=error.log debug_logfile=debug.log auth_username=my-gmail-id@gmail.com auth_password=my-gmail-password force_sender=my-gmail-id@gmail.com ?>
instead of using sendmail.exe, suggest use library phpmailer.
you have example here: basic example using gmail
Comments
Post a Comment