phpmailer

Some live/hotmail user's are not receiving html mail

◇◆丶佛笑我妖孽 提交于 2020-01-06 17:14:53
问题 I'm sending html emails via phpmailer on my website. But, for some reason a few live/hotmail users are not receiving my emails. Regarding my server logs, all the e-mails just send successful to the right email addresses. When I test with my own (old)hotmail address i'm receiving the emails just fine, but some users complaining they don't. A test with a new outlook address is also not receiving any email from the website. The script is sending all the emails with SMTP auth. Where do I have to

PHPmailer can't connect to smtp server

谁说我不能喝 提交于 2020-01-06 07:26:01
问题 I've been using PHPmailer (https://github.com/Synchro/PHPMailer) to send email through amazon SES for a few months. At some time in the last two weeks it has stopped working, and I haven't touched it. I'm getting an error msg: SMTP Error: Could not connect to SMTP host. This is my code. public function sendEmail($to,$subject,$body){ $mail = new PHPMailer; $mail->IsSMTP(); // Set mailer to use SMTP $mail->Host = 'amazonaws....'; // Specify main and backup server $mail->SMTPAuth = true; //

PHPmailer can't connect to smtp server

巧了我就是萌 提交于 2020-01-06 07:25:13
问题 I've been using PHPmailer (https://github.com/Synchro/PHPMailer) to send email through amazon SES for a few months. At some time in the last two weeks it has stopped working, and I haven't touched it. I'm getting an error msg: SMTP Error: Could not connect to SMTP host. This is my code. public function sendEmail($to,$subject,$body){ $mail = new PHPMailer; $mail->IsSMTP(); // Set mailer to use SMTP $mail->Host = 'amazonaws....'; // Specify main and backup server $mail->SMTPAuth = true; //

set mail driver dynamically from database for different email in notification

孤人 提交于 2020-01-06 06:56:14
问题 I want to set the following setting dynamically before I notify the user. MAIL_DRIVER= MAIL_HOST= MAIL_PORT= MAIL_USERNAME= MAIL_PASSWORD= MAIL_SENDER_EMAIL= MAIL_SENDER_NAME= for each customer they have the option to set this value from the frontend now I need to send email as per there setting is there any way in laravel I can do this. I am using notification to notify each customer so before I notify I want to set this option dynamically from DB. Thanks in advance. 回答1: these env variables

php send mail how to send mail with file attachment [duplicate]

梦想的初衷 提交于 2020-01-06 05:43:10
问题 This question already has answers here : Send attachments with PHP Mail()? (13 answers) Closed 4 months ago . I'm working on file attachment here mail function is working fine I'm getting all fields through mail accept file upload field is not coming. I have tried using Content-Type: multipart/mixed and some other methods but unable to achieve the desired output. I have servey and find the different answer and tried but still facing the same issue. Can anyone suggest to me according to my

Sending mail with PHPMailer (SMTP)

有些话、适合烂在心里 提交于 2020-01-06 04:49:05
问题 I am trying to send mail with PHPMailer (SMTP). If I send from localhost I get the error warning: 2017-11-11 15:14:39 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2017-11-11 15:14:40 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [C:\xampp\htdocs\NEU\phpmailer\vendor\phpmailer\phpmailer\src\SMTP.php line 404] SMTP Error: Could not connect to

Sending email from localhost in php

两盒软妹~` 提交于 2020-01-06 03:17:28
问题 Ok, I'm just overwhelmed by the number of ways and tools to send emails from localhost using php script. Can you guys just help me clearing some things up? These are my types of actions: I've enabled gmail smtp in php.ini, set port to 465. I've downloaded phpmailer, tested as per instruction without success. I've the remote server mails configuration(where my site was previously hosted). Also, I have a php script downloaded from the internet which is supposed to send email. What exactly do I

PHPMailer Encoding 8 bit

不羁岁月 提交于 2020-01-05 19:13:49
问题 I have a weird problem with the Content-Transfer-Encoding of the emails I sent. In add the following line: $mail->Encoding = '8bit'; In my code, but the emails sent with quoted-printable... In the source: Content-Transfer-Encoding: quoted-printable I don't know how to do for sending my emails with a Content-Transfer-Encoding in 8bit... $mail->Encoding = '8bit'; seems to doesn't work... All the code: $mail = new PHPMailer; $mail->SMTPDebug = 3; $mail->isSMTP(); $mail->setLanguage('fr', '.

send email to owner by collecting information provided by user through form?

只愿长相守 提交于 2020-01-05 04:57:13
问题 I had designed user input form that collects user name, email address, subject and message. I had verified all elements stored these element in variable. Now I need to send this information to the owner via email. How can I solve this problem in localhost(too)? How can I send email to owner? How can I add all information so that I can get back or differ it later in owner email. contact.php <form action="contact_ok.php" method="post" autocomplete="on"> <p> <label for="username"> Name <span

PHPExcel send file in email

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-05 03:33:11
问题 I have a site where in a page I have developed an xls report. After its creation I want to send it in a mail with phpmailer. How can I attach this file to the email? This is my code: $objPHPExcel = new PHPExcel(); // Set document properties $objPHPExcel->getProperties()->setCreator("Alessandro Minoccheri") ->setLastModifiedBy("Alessandro Minoccheri") ->setTitle("Office 2007 XLSX Test Document") ->setSubject("Office 2007 XLSX Test Document") ->setDescription("Generazione report inverter") -