almost 9 years ago
Hello Friends,
If you are looking to implement SMTP email via gmail account. Please follow the below code:
$mailObj = new PHPmailObjer; $mailObj->SMTPDebug = 3; //SMTP debugging on. $mailObj->isSMTP(); $mailObj->Host = "smtp.gmailObj.com"; //Setup your SMTP gmail account $mailObj->SMTPAuth = true; //Ture mean SMTP host requires authentication to send $mailObj->Username = "name@gmailObj.com"; //define your username credential $mailObj->Password = "super_secret_password"; //define your password credential $mailObj->SMTPSecure = "tls"; //Define SMTP TLS encryption to tls $mailObj->Port = 587; //Define TCP port to connect to $mailObj->From = "abc@xyz.com"; $mailObj->FromName = "From Name"; $mailObj->addAddress("receiveremail@example.com", "Receiver Name"); $mailObj->isHTML(true); $mailObj->Subject = "Subject Text"; $mailObj->Body = "mailObj body in HTML"; $mailObj->AltBody = "This is the plain text version of the emailObj content"; if(!$mailObj->send()) { echo "mailObjer Error: " . $mailObj->ErrorInfo; } else { echo "Email has been sent successfully"; }
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)