I want to send email from myid@mysite.com. I have configured my wamp as per this stackoverflow link below above code works fine to send using gmail account but not using other domain account e.g. Want to send from myid@mysite.com.
Please guide me.
In php.ini I 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 I have changed code to
<?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
    ?>
 
     
    