Following code helps the php developers to send email using gmail smtp server. <?php require_once "Mail.php"; $from = "<fromaddress@domain.com>"; $to = "<toaddress@domain.com>"; $subject = "Hey"; $body = "Hi,\n Hello World?"; $host = "ssl://smtp.gmail.com"; $port = "465"; $username = "loginusername@gmail.com"; $password … Continue reading
↧