我们在使用PHPMailer使用Gmail来发送邮件的连接smtp服务器错误提示:smtp error could not connect to smtp host !了,这个是因为extension=php_openssl.dll未开启导致的哦。
使用的PHPMailer版本:5.2.1,以下是PHPMailer的example文件夹里给出的:test_gamil_basic.php的部分代码,代码如下:
- $mail = new PHPMailer();
- $body = file_get_contents('contents.html'); //$body = $_POST['body'];
- $body = eregi_replace("[]",'',$body);
- $mail->IsSMTP(); // telling the class to use SMTP
- $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
- // 1 = errors and messages
- // 2 = messages only
- $mail->SMTPAuth = true; // enable SMTP authentication
- $mail->SMTPSecure = "ssl"; // sets the prefix to the servier
- $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server or ssl://smtp.gmail.com
- $mail->Port = 465; // set the SMTP port for the GMAIL server
- $mail->Username = "yourusername@gmail.com"; // GMAIL username
- $mail->Password = "yourpassword"; // GMAIL password
- $mail->SetFrom('name@yourdomain.com', 'First Last');
- $mail->AddReplyTo("name@yourdomain.com","First Last");
- $mail->Subject = "PHPMailer Test Subject via smtp (Gmail), basic";
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
- $mail->MsgHTML($body);
- $address = "whoto@otherdomain.com";
- $mail->AddAddress($address, "John Doe");
- $mail->AddAttachment("images/phpmailer.gif"); // attachment
- $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
- if(!$mail->Send()) {
- echo "Mailer Error: " . $mail->ErrorInfo;
- } else {
- echo "Message sent!";
- }
按照这个例子给出的代码操作,我遇到了以下错误:
提示您 smtp error could not connect to smtp host !的错误提示,google了下,发现是需要开启PHP的openssl扩展:
extension=php_openssl.dll //去掉最前面的分号,重启apache或nginx服务器。
HoHo~成功发送。
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » PHPMailer使用Gmail来发送邮件的连接smtp服务器错误
波比源码 » PHPMailer使用Gmail来发送邮件的连接smtp服务器错误
buy levofloxacin 500mg order levaquin 500mg generic
buy dutasteride sale zofran oral order zofran generic
purchase aldactone sale valtrex 1000mg without prescription order diflucan 200mg pill
acillin us cephalexin us generic erythromycin
sildenafil online bimatoprost order purchase robaxin online
cheap suhagra 50mg sildenafil pills 200mg order estradiol 2mg generic
purchase lamotrigine online order mebendazole online retin cream generic
accutane 20mg usa amoxil 1000mg without prescription azithromycin 250mg sale
buy generic indomethacin 75mg cefixime tablet amoxicillin 500mg us
arimidex 1 mg brand Free trial of viagra cheap sildenafil without prescription
buy doxycycline 100mg online buy generic vardenafil 20mg order furosemide pill
altace brand irbesartan 300mg without prescription order azelastine 10 ml sprayer
order clonidine online cheap catapres us buy tiotropium bromide 9 mcg generic
order buspar 10mg generic order dilantin 100 mg pills ditropan generic
benicar 10mg sale buy generic depakote 500mg purchase diamox generic
order prograf without prescription labetalol 100mg oral ursodiol 300mg drug
oral isosorbide isosorbide cost order telmisartan 80mg online
order zyban 150 mg for sale cheap strattera order generic seroquel 50mg
purchase molnupiravir sale molnupiravir 200 mg sale order generic lansoprazole
oral sertraline 100mg purchase zoloft for sale order generic viagra
revia for sale online buy generic albenza aripiprazole 30mg brand
purchase provera generic purchase microzide online purchase periactin generic
piracetam 800mg brand canadian viagra order viagra sale
buy zithromax 500mg sale order prednisolone 5mg online neurontin 100mg oral
cheap tadalafil 5mg sildenafil 50mg pills for men sildenafil 50mg usa
order lasix 100mg generic order doxycycline 100mg sale buy hydroxychloroquine 400mg generic
order cialis 40mg tadalafil canada anafranil cheap
buy metformin 1000mg without prescription order tadalafil 10mg online cheap order tadalafil 5mg for sale
cost norvasc 10mg order generic amlodipine 10mg buy cialis 5mg generic
buy prilosec generic affordable term papers play blackjack online
order lopressor buy lopressor 100mg pills vardenafil oral
clomiphene 50mg for sale purchase albuterol sale online casino games real money
cialis from india tadalafil 10mg brand order viagra
buy generic triamcinolone 4mg desloratadine for sale online clarinex us
order dapoxetine 90mg pills buy priligy online cheap buy levothyroxine for sale
oral orlistat zovirax 800mg canada zovirax 400mg cost
order tadalafil 20mg online buy cialis 5mg generic plavix us
allopurinol without prescription ezetimibe 10mg without prescription order ezetimibe
buy motilium online cheap purchase motilium online buy cyclobenzaprine 15mg sale
losartan price buy cozaar 50mg pill topiramate online
order imitrex for sale cheap levofloxacin 500mg avodart buy online
order colchicine for sale blackjack online online casino games real money
cost zantac 150mg celebrex medication celecoxib 200mg for sale
simvastatin tablet finasteride ca finasteride online
buy fluconazole 200mg pills fluconazole drug viagra 50mg tablet
cialis 40mg sale cialis next day delivery sildenafil 50mg uk
real viagra pills viagra online order order tadalafil pills
casino games online real money generic cialis 5mg tadalafil 20mg for sale
generic trazodone order trazodone generic order aurogra 50mg pills
cheap thesis binding essay helper online stromectol 15 mg
buy sildalis generic order lamotrigine pills lamictal 50mg brand
no deposit free spins casino slots meaning tadalafil 40mg us
buy lasix generic furosemide tablet plaquenil 400mg over the counter
order deltasone 20mg generic minipress 1mg pills mebendazole usa
tretinoin gel usa buy avana 100mg generic avanafil 200mg for sale
tadalafil 20mg brand buy tadalafil for sale order indocin generic
buy naproxen 500mg generic buy cefdinir 300 mg online cheap order generic prevacid 15mg
order clarithromycin 250mg generic antivert pills generic antivert
albuterol 100mcg oral buy pantoprazole 40mg for sale cipro 500mg price
singulair 10mg over the counter singulair 5mg pill sildenafil for men
tadalafil 10mg over the counter buy tadalafil pills tadalafil ca
doxycycline 100mg ca ventolin inhalator online cleocin 300mg cost
mesalamine pills order mesalamine 400mg pill order avapro 150mg for sale
cost olmesartan 10mg calan 240mg generic order divalproex generic
acetazolamide 250mg pills isosorbide canada buy imuran 50mg pill
lanoxin 250 mg cost order molnunat 200 mg generic molnunat 200mg ca
order carvedilol 6.25mg pill buy amitriptyline 50mg for sale order amitriptyline 50mg generic
cheap dapoxetine 90mg order dapoxetine 60mg for sale motilium buy online
Thank you for great information. Hello Administ . Metropol Halı Karaca Halı Öztekin ve Selçuklu Halı Cami Halısı ve Cami Halıları Türkiye’nin En Büyük Cami Halısı Fabrikasıyız…
Good info. Lucky me I reach on your website by accident, I bookmarked it. Metropol Halı Karaca Halı Öztekin ve Selçuklu Halı Cami Halısı ve Cami Halıları Türkiye’nin En Büyük Cami Halısı Fabrikasıyız…
alendronate 35mg over the counter buy motrin pills ibuprofen uk
Nice article inspiring thanks. Hello Administ . Metropol Halı Karaca Halı Öztekin ve Selçuklu Halı Cami Halısı ve Cami Halıları Türkiye’nin En Büyük Cami Halısı Fabrikasıyız…
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.Metropol Halı Karaca Halı Öztekin ve Selçuklu Halı Cami Halısı ve Cami Halıları Türkiye’nin En Büyük Cami Halısı Fabrikasıyız…
purchase pamelor generic purchase paxil without prescription paxil online order
buy ropinirole 2mg without prescription labetalol pills buy trandate 100mg online
esomeprazole 40mg us furosemide without prescription buy lasix 40mg without prescription
cialis 20mg tablet best ed pills at gnc male ed drugs
buy modafinil generic buy phenergan online cheap purchase promethazine pills
Thank you great post. Hello Administ . Websitemiz : https://www.istanbulofistasima.net/
zofran 4mg for sale order amoxil 1000mg online cheap buy trimethoprim sale
provigil generic order lisinopril 10mg online buy cheap lopressor
ditropan online order trileptal 300mg generic trileptal 300mg price
cheap omnicef 300mg brand omnicef 300mg buy protonix 20mg generic
sildenafil online viagra sildenafil 150mg cialis price costco
buy generic zetia buy methotrexate 2.5mg buy methotrexate 2.5mg sale
promethazine price buy promethazine 25mg tadalafil 40mg us
buy levaquin online cheap zyban 150 mg cheap order bupropion without prescription
atorvastatin price lipitor 20mg pill viagra 100mg price
letrozole 2.5mg usa sildenafil for men over 50 viagra 100mg cheap
buy cialis 40mg cialis canadian cost buy ed pills for sale
buy tadalafil 40mg sale tadalafil 10mg canada men’s ed pills
ivermectin 50 mg cheap accutane 40mg buy isotretinoin 40mg sale
buy provigil pills for sale prednisone cost prednisone 40mg sale
order amoxicillin 1000mg pills buy amoxil 1000mg generic order prednisolone 40mg pill
accutane generic amoxil for sale order azithromycin 500mg generic
order gabapentin 100mg sale order neurontin 100mg online vibra-tabs ca
prednisolone 10mg usa brand lasix 40mg order furosemide sale
brand biltricide 600 mg order generic periactin buy generic cyproheptadine 4mg
prinivil oral prilosec 10mg for sale metoprolol 50mg over the counter
lyrica 150mg generic loratadine pill priligy usa
buy generic xenical over the counter order xenical without prescription zyloprim 100mg ca
buy cozaar 50mg online purchase hyzaar online cheap buy topiramate 200mg
buy crestor pills for sale purchase rosuvastatin domperidone online
sumatriptan us order sumatriptan 50mg online order avodart for sale
order sumycin pill purchase flexeril generic ozobax pills
buy ketorolac generic order colchicine sale purchase inderal online cheap
buy plavix 150mg generic plavix uk ketoconazole pill
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. Click on the Keyword to Enter the Website. Bahsegel
buy betnovate generic clomipramine 50mg canada purchase sporanox
order prometrium for sale buy zyprexa 10mg pills buy olanzapine 10mg generic
order starlix 120 mg generic order captopril 25mg sale atacand 8mg canada
bystolic ca buy clozaril order clozaril 100mg without prescription
simvastatin pills brand sildenafil 50mg purchase sildenafil sale
how to get carbamazepine without a prescription carbamazepine 200mg pills lincomycin tablet
tadalafil 10mg cheap tadalafil ca cheap sildenafil without prescription
buy generic cefadroxil online finasteride 1mg drug order proscar 1mg generic
buy generic diflucan 100mg diflucan 200mg drug ciprofloxacin 1000mg brand
buy estradiol tablets how to get lamictal without a prescription minipress 1mg brand
buy metronidazole medication cephalexin 125mg over the counter buy keflex 250mg
vermox buy online mebendazole us tadalis 20mg drug
clindamycin brand free ed pills cost sildenafil
purchase bimatoprost generic buy desyrel 50mg generic order trazodone 50mg sale
order accutane 10mg generic order zithromax online zithromax pills
altace uk cost ramipril etoricoxib online
vardenafil brand tizanidine 2mg sale buy cheap generic hydroxychloroquine
cheap asacol irbesartan online buy brand irbesartan 300mg
clobetasol online buspirone 5mg over the counter cordarone generic
diamox online diamox where to buy order azathioprine 50mg generic
oral lanoxin generic lanoxin 250 mg molnupiravir drug
cheap baricitinib 4mg buy olumiant paypal lipitor 40mg ca
brand albuterol 100mcg purchase phenazopyridine generic buy pyridium generic
buy montelukast 5mg generic buy symmetrel paypal generic avlosulfon 100mg
order metoprolol 100mg online cheap purchase tenormin without prescription medrol brand name
buy bactrim without a prescription bactrim 960mg brand cleocin 150mg cheap
robaxin 500mg oral where can i buy suhagra suhagra 50mg pill
order topamax pill buy levaquin generic levofloxacin 250mg pills
order avodart generic buy zantac order meloxicam for sale
order lamictal for sale buy vermox 100mg generic buy minipress online cheap
buy spironolactone without prescription buy aldactone 25mg pill order valacyclovir 1000mg generic
purchase tretinoin sale buy avanafil generic brand avanafil 100mg
buy propecia 1mg online cheap sildenafil brand viagra 50mg canada
order tadalafil 5mg for sale order generic cialis usa viagra sales
buy generic lamisil order amoxicillin 500mg online trimox 500mg generic
arimidex 1mg brand clonidine 0.1 mg cheap order catapres 0.1mg online cheap
buy fexofenadine 180mg sale buy glimepiride 1mg glimepiride 4mg over the counter
order generic hytrin buy pioglitazone generic cialis 40mg
buy arcoxia for sale astelin 10 ml generic astelin nasal spray
brand avapro 300mg buspirone 10mg without prescription oral buspirone 5mg
order ditropan 2.5mg without prescription order elavil 50mg without prescription generic fosamax 35mg
biltricide canada order generic biltricide 600 mg order periactin 4mg pill
buy panadol buy paracetamol 500mg sale how to buy famotidine
order anafranil 50mg for sale buy generic prometrium 100mg order prometrium 100mg for sale
tindamax 300mg generic order nebivolol sale order nebivolol 5mg sale
purchase bupropion pill zyrtec 10mg pill atomoxetine canada
order capoten 25 mg without prescription buy candesartan 8mg for sale buy cheap carbamazepine
buy ciprofloxacin generic purchase lincocin buy cefadroxil medication
where to buy epivir without a prescription order accupril sale purchase accupril generic
sarafem usa femara over the counter buy femara 2.5 mg
buy frumil 5mg online cheap zovirax price acyclovir generic
zebeta 5mg cost ethambutol 600mg us buy oxytetracycline 250mg generic