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:
Ambien Suicide and Order Percocet Online and Xanax Side Effects and Where To Buy Valium and How To Inject Vicodin
Zoloft And Weight Gain and Levitra Side Effects and Zyrtec Medication and Hydrocodone Acetaminophen and Adderall Online Pharmacy
Amoxicillin 250 Mg 30 Caps and Order Hydrocodone Online Legally and Side Effects Of Clomid and Valium Needed To Sedate 16lb Cat and What Is The Strongest Diet Pill
Can Clomid Change Your Cycle Time and Viagra Uk Cheap Purchase Buy and Phentermine Without A Prescription and Buy Hydrocodone Mexico and What Does Lorazepam Do
Difference Between Percocet And Percodan and Vicodin For Back Pain and Percocet 10 325 and Oprah Acai Berry and Free Diet Pill
Phentermine 37.5mg and Vicodin Refill Laws and Buy Carisoprodol and Effects Of Zoloft and Buy Diet Pill Online
Acai Berry And Omeprazole and Buy Adipex-p Phentermine Online and Eye Floaters Wellbutrin and Football Xanax and Where To Buy Acai Berry Capsules
Generic Viagra and Discount Levitra and Buy Xanax Without Prescription In Usa and Doxycycline And Ms and Phentermine Price
Subaction Showcomments Viagra Optional Online and Can Xanax Be Abused and Acai Berry Juice and Biaxin Side Effects and Biaxin Xl
Cheapest Phentermine Online and Soma Drug History and Hydrocodone Withdrawl and Xanax For Fear Of Flying and Klonopin Vs Xanax
Valtrex Vs Acyclovir and Side Effects Tramadol and But Soma Online and Discount Soma and Tramadol Saturday Delivery
Buy Adderall Online and Viagra Lawyers and Acai Berry Weight Loss Formula and Amoxicillin Dosage and Effexor Withdrawl
Subaction Showcomments Propecia Archive Remember and Older Cats Zoloft and Hydrocodone Cough Syrup and Adante And Allegra Barat and Order Carisoprodol
Seroquel Lawsuits and Elavil Nerve Pain and Buying Generic Cialis and Oscillopsia Fluoxetine and Discount Phentermine
Propecia Side Effects and Low Cost Phentermine With Out Prescription and Addiction To Ambien and Tramadol As Antidepressant and Alli Diet Pills
Xanax Pain Relief and Prescription Drug Called Soma and Prescription Drug Called Soma and Glucophage Insulin Resistance and Pregnancy On Prozac
Buy Tamiflu and Xenical Results and Buying Vicodin Online and How Fast Does Valtrex Work and Generic Viagra India
Zoloft Side Effects and Where Can I Buy Hydrocodone Online and Is Soma A Narcotic and Xanax Drug Interactions and Xanax Withdrawl
Injecting Xanax and Very Cheap Tramadol and What Is Acai Berry and Adderall Abuse and Order Soma
Generic Ambien Without A Prescription and Order Viagra Online and Subaction Showcomments Propecia Thanks Older and Xanax Online Without Prescription and Buy Adipex Online No Prescription
Nexium Reactions and Acyclovir Zovirax and Womans Viagra and Where Can I Purchase Vicodin Online and Low Cost Cialis
Losartan and What Is Zyrtec Used For and Buspar Alternative and Wellbutrin For Weight Loss and Mexican Vicodin
Withdrawal From Cymbalta and Fluoxetine Hcl and What Is Amoxicillin Used For and Soma Highs and Effexor Side Effects
Bad Side Effects From Wellbutrin and Uk Viagra Sales and Valium No Prescription and Generic Sildenafil and Hydrocodone Withdrawal
Augmentin Side Effects and What Do Xanax Bars Look Like and Viagra Women and Ultram Euphoria and Free Viagra Samples Before Buying
Viagra Results and Zolpidem Tartrate and Mesterolone Tamoxifen and Seroquel Wyoming and Side Effects Of Paxil Drug
Geberic Nexium and Buy Levitra Online and Cold Water Filtration Of Hydrocodone and Diet Pill Review and Accutane Side Effects
Hydrocodone Side Effects and Darvocet Vs Vicodin and Valium No Prescription Needed and Percocet Online and Acai Berry Scam
Zoloft Rapid Heartbeat At Night and Help For Ambien Addiction and Where To Order Soma and Doctors Who Prescribe Adderall and Valium Side Effects
Buy Xanax Online Without Prescription and Cipro And Pennicillin and Hydrocodone Apap Fact Sheet and Viagra Overdose and Diazepam Without A Prescription
Buy Tramadol and Lowest Prices For Cialis and Overdose Of Augmentin and Acai Berry Detox Program and Diet Pills Online
Acai Berry And Colon Cleanse and Buy Acai Berry and Q Phentermine Hq and Lexapro Vs Cymbalta and Side Effects Of Lorazepam
Adding Prozac To Drinking Water and Lamisil Ratings and Adderall No Prescription and Celebritys And Xanax and Tramadol Fed Ex No Memberships
Viagra Prices and Is Adipex Dangerous and Buy Cheap Cialis and Atlanta Accutane Lawsuits and Buy Hydrocodone Without A Prescription
Viagra Over The Counter and Flagyl Amoxicillin For Dogs and Buy Hydrocodone Online and Side Effects Of Zoloft and Subaction Showcomments Viagra Thanks Remember
Buy Adderall Pills and Symptoms Vicodin Addiction and Cipro Dosage and Phentermine Overnight Delivery and Adipex No Prescription
Acai Berry Supreme and Free Trial Of Viagra and Side Effects Of Tadalafil and Generic Meridia and Acai Berry Maxx
Buy Hydrocodone Without A Prescription and Phentermine Ingredient and Soma Plant and Cheapest Sildenafil Citrate and Buy Tramadol Online
Tramadol Overnight and Viagra Rx and Biaxin Antibiotic and Side Effects Of Ambien Cr and Paxil Withdrawal