If you want to use gmail smtp server in PHP, php mailer is a good choice for you. Here is the example:
include(“class.phpmailer.php”);
$mail = new PHPMailer ();
$mail->IsSMTP ();
$mail->SMTPAuth = true;
$mail->SMTPSecure = “ssl”;
$mail->Host = “smtp.gmail.com”;
$mail->Port = 465;
$mail->Mailer= “smtp”;
$mail->Username = “username@gmail.com”;
$mail->Password >= “password”;
$mail->AddReplyTo (“Reply Email”, “Recipient Name”);
$mail->From = “sender@gmail.com”;
$mail->FromName = “Sender Name”;
$mail->Subject = “Email Subject”;
$mail->Body = “Email Content…”;
$mail->WordWrap = 50;
$mail->AddAddress (“receiver@gmail.com”, “Receiver Name”);
$mail->IsHTML (true);
$mail->Send ();
However, these simple codes could only work on PHP with enabling the ssl function. If not, you will probably find the warning message in the log file:
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP?)
To solve this problem, you have to make sure your php.ini including extension=php_openssl.dll (of course the file should be placed in php extension directory) and copy both libeay32.dll and ssleay32.dll from php directory to apache bin directory.
References:
Cialis Injury Lawyer Columbus and Ativan Addiction and Diet Pills That Really Work and What Does Ambien Zopidem Look Like and Adipex Ingredients
Septra Versus Cipro and
Effects Of Snorting Xanax and Acai Berry Distributed By Fwm Laboritories and Acai Berry Supplements At Costco and Soma Mandal and Buy Xanax Valium Online Florida
Tramadol Overnight and Viagra Rx and Biaxin Antibiotic and Side Effects Of Ambien Cr and Paxil Withdrawal
Zithromax Effects and Zyrtec For Canines and Cheap Phentermine Free Shipping and Weight Loss Escondido Ca Phentermine and Norco Hydrocodone
Cipro Side Effects and Order Valium and Effexor Serious Side Effects and Brennan Seroquel Deposition Florida and Paxil Side Effects
Clonazepam Effects and Purchase Butalbital With Mastercard and Buy Carisoprodol and Order Tramadol Online and Side Effects Of Taking Vicodin
Celexa Lexapro Vs and Buying Adderall Online and What Is Butalbital Used For and Phentermine Very Cheap and Order Soma Carisoprodol
Viagra Doseage and Amoxicillin And Alcohol and Buy Cheap Viagra and Phentermine Ionamin and Phentermine 37 5mg
Tramadol Hcl and Soma Cube and Ohio Buy Percocet Without A Prescription and Cipro Side Effects In Women and Buy Viagra In London England
Guys With Longhair Propecia and Difference Between Adderall And Concerta and Cheap Propecia and Ambien Generic and Prozac Maker
Quick Forum Readtopic Propecia Signature Content and Side Effects Of Adderall and Augmentin and Valium Dosage and Side Effects Of Cymbalta
Zoloft And Alcohol and Buspar Side Effects and Buy Cheap Viagra and Phentermine Online No Rx and Do Diet Pills Really Work
Smoking Adderall and Percocets and Buy Adipex and Nexium Gernerics and Adipex P Lawsuits
Soma 350mg Saturday Fed-ex Shipping and Viagra Canada and Viagra Cialis and Description Of Soma and Lorazepam Withdrawal
Tamiflu Order Without A Prescription and Side Effects Of Effexor and Ativan And Nyquil and How Does Viagra Work and Percocet Side Effects
Lorazepam 1mg Tablets and Premarin Side Effects and Singulair and Ship Free Viagra Sample and Cheap Phentermine Without A Prescription
Online Pharmacy Vicodin Hydrocodone and Cialis Online and Side Effects Of Zoloft and Buy Ultram Online and Purchase Viagra
Sinus Infections And Zyrtec and Herbal Phentermine and Side Effects Of Prozac and Viagra For Sale and Free Viagra Without Prescription
Vicodin Overdose and Generic Adderall With No Prior Prescription and Cialis Vision and Acyclovir Side Effects and Viagra Oral
Lamictal Combined Wellbutrin and Hydrocodone Apap 5 500 and Subaction Showcomments Cialis Optional Watch and Allegra X-22 and Cost Of Accutane With Bcbs Insurance
Lorazepam 1mg Tablets and Long Term Phentermine Use and Buy Xanax Online Without A Prescription and Buying Vicodin Online Legal and Side Effects Of Vicodin
Viagra Price and Phentermine No Prescription Needed and Buy Soma and Roche Valium and Viagra Sample
Phentermine No Script and Does Amoxicillin Contain Penicillin and Side Effects Of Wellbutrin Sr and Celexa Lexapro Vs and Adderall Withdrawl
Percocet 512 and Cheapest Viagra Prices and How Long Does Cialis Last and Valium Withdrawal and Ambien Cr Side Effects
Cialis Tadalafil and Side Effects Of Lorazepam and Guaranteed Cheapest Viagra and Wellbutrin Sr and Tamiflu Ingredients
Phentermine India and Lorazepam Side Effects and Cheapest Cialis and Actos Side Effects and Effects Of Prozac
Lunesta Compared With Ambien and Discount Viagra and Vicodin 567 and Subaction Showcomments Cialis Smile Older and Vicodin And Pregnancy
Vicodin Long Term Effects and No Prescription Hydrocodone and Valium Online and When Is Valium Prescribed and Buy Adipex Online Without A Prescription
No Prescription Phentermine Online and What Is Clonazepam Used For and Withdrawal And Effexor And Paxil and Phentermine No Prescription Needed and Buy Phentermine
Over The Counter Diet Pills and Vicodin And Antacids and Phentermine Directory and Buy Alprazolam and Buy Xanax Online Without Prescription
Disolving Amoxicillin For Oral Use and Similar Drugs To Tramadol and Phentermine Line and Paxil And Weight Gain and Hydrocodone Bitartrate
Fluoxetine Withdrawal and Hydrocodone Prescription Doctor and Adderall Citric Acid and Venom Diet Pills and Acai Berry Reviews