Source: Swing It Services BlogPHP.INI SETTINGS SMTP=smtp.gmail.com smtp_port=587 sendmail_from = my-gmail-id@gmail.com sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" SENDMAIL.INI [sendmail] smtp_server=smtp.gmail.com smtp_port=587 auth_username=my-gmail-id@gmail.com auth_password=my-gmail-password CODE TO TEST <?PHP $headers = "MIME-Version: 1.0″ . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1″ . "\r\n"; $headers .= "From: sender@sender.com" . "\r\n"; mail("youremailaddress@gmail.com","test subject","test body",$headers); ?> The post Send mail through PHP XAMPP [ Windows ] appeared first on Swing Community.
Read full article »
Followers on Owler
3