phpmailer

Phpmailer using smtp with Gmail not working - connection timing out

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've looked into the following links: phpmailer send gmail smtp timeout send email using Gmail SMTP server through PHP Mailer http://uly.me/phpmailer-and-gmail-smtp/ ...and tried to implement for myself a combination of those however...most of the time it sends this message... Message could not be sent. Mailer Error: SMTP connect() failed. However there was one time where it sent this when I experimented between "tls" and "ssl"... SMTP ERROR: Failed to connect to server: Connection timed out (110) SMTP connect() failed. Message could not be

PHPMailer .Exception:SendAsDeniedException.MapiExceptionSendAsDenied

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i have installed PHPMailer on my website. but, i can't get it to work the way it should. when i send an email through the website i get the following error: 08:12:53 CLIENT -> SERVER: RCPT TO: 2016-10-13 08:12:53 CLIENT -> SERVER: DATA 2016-10-13 08:12:53 CLIENT -> SERVER: Date: Thu, 13 Oct 2016 08:12:51 +0000 2016-10-13 08:12:53 CLIENT -> SERVER: To: Kevin Kloet 2016-10-13 08:12:53 CLIENT -> SERVER: From: Name <myEmail@email.com> 2016-10-13 08:12:53 CLIENT -> SERVER: Reply-To: Name <myEmail@email.com> 2016-10-13 08:12:53 CLIENT -> SERVER:

AWS SES with PHPMailer using SMTP, SMTP Error: Could not authenticate?

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get the following error: Authentication Credentials Invalid. I've double checked the username (Access key ID) and password (Secret Token) a million times. I double checked the base64 sent to the server and it's correct. User has correct access rights. All outbound traffic from EC2 server is allowed. SELinux is disabled. I've escaped special characters, tried different credentials. Tried using a user with more access. I'm using PHPMailer with AWS SES. Here is the code: $mail = new PHPMailer; $mail->isSMTP(); $mail->SMTPAuth = true; $mail-

Trying to send a responsive email using PHP mailer

走远了吗. 提交于 2019-12-02 22:38:56
问题 I have a responsive email template in a php file and trying to send it with PHP mailer with no success. My code looks like this. $m = new PHPMailer; $m ->isSMTP(); $m->SMTPAuth=true; // debugging // $m->SMTODebug=1 // endof debug $m->Host="smtp.gmail.com"; $m->Username="example@gmail.com"; $m->Password="blahblah"; $m->SMTPSecure='ssl'; $m->Port=465; $m->isHtml(true); $m->Subject = 'Welcome to Efie'; $m->msgHTML(file_get_contents('functions/register-email.php'), dirname(__FILE__)); $m-

phpmailer实现发邮件

匿名 (未验证) 提交于 2019-12-02 22:11:45
第一步: 打开网址https://github.com/PHPMailer/PHPMailer/ 下载PHPMailer,PHPMailer 需要 PHP 的 sockets 扩展支持,而登录 QQ 邮箱 SMTP 服务器则必须通过 SSL 加密的, PHP 还得包含 openssl 的支持。 第二步:使用 phpinfo() 函数查看 socket 和 openssl 扩展信息(wamp server 默认启用了该扩展)。 openssl 如果没有开启请打开php.ini文件进行开启 首先检查php.ini中;extension=php_openssl.dll是否存在, 如果存在的话去掉前面的注释符‘;’, 如果不存在这行,那么添加extension=php_openssl.dll。 PHPMailer 核心文件 第三步: QQ 邮箱设置 所有的主流邮箱都支持 SMTP 协议,但并非所有邮箱都默认开启,您可以在邮箱的设置里面手动开启。 第三方服务在提供了账号和密码之后就可以登录 SMTP 服务器,通过它来控制邮件的中转方式。 第四步:开启 SMTP 服务 选择 IMAP/SMTP 服务,点击开启服务 第五步:验证密保 发送短信“配置邮件客户端”至1069-0700-69 第六步:获取授权码 SMTP 服务器认证密码,需要妥善保管(PS:密码直接没有空格) 第七步:PHP发送邮件

linux下phpmailer发送邮件出现SMTP ERROR: Failed to connect to server: (0)错误

匿名 (未验证) 提交于 2019-12-02 22:11:45
在做项目的过程中,后期客户提出了发送邮件的需求,既然客户有需求,那么没啥说的,上呗。 经过网上的一般资料查找,PHPMailer这个插件貌似用起来不错,那就从github clone一份来,下载链接是 PHPMailer。 官当demo如下:当然相关的配置要换成你自己的 //Create a new PHPMailer instance $mail = new PHPMailer ; //Tell PHPMailer to use SMTP $mail -> isSMTP (); //Enable SMTP debugging // 0 = off (for production use) // 1 = client messages // 2 = client and server messages $mail -> SMTPDebug = 2 ; //Set the hostname of the mail server $mail -> Host = 'smtp.qq.com' ; //$mail->Host = 'smtp.163.com'; //Set the SMTP port number - likely to be 25, 465 or 587 $mail -> Port = 465 ; $mail -> SMTPSecure = "ssl" ; //$mail-

Cant send email with correct characters with PHPMailer

元气小坏坏 提交于 2019-12-02 22:05:33
I'm trying to send a e-mail with the PHPmailer class, but the html i send, is empty, or the characters are unconfigured, and without accents. <?php header("Content-Type: text/html; charset=ISO-8859-1", true); require_once('class.phpmailer.php'); include "config.php"; $nome = trim($_POST['nome']); $email = trim($_POST['Imail']); $usuario = trim($_POST['usuario']); $senha = trim($_POST['senha']); $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail->AddAddress($email, $nome);

Is PHPMailer Secure

最后都变了- 提交于 2019-12-02 21:37:06
问题 I know this probably isn't an easy question but I'm developing several webforms and want a PHP library that I can use to send the mail and have it automatically sanitize the data. I was looking at PHPMailer which looked pretty simple to setup. Is PHPMailer a secure library to use to prevent my forms from being subject to SQL Injection/E-mail Injection / XSS, etc? I recognize nothing is 100% secure but I'm looking for an easy script to use without me having to sanitize the data. 回答1: PHPMailer

unable to send mail in php using mailer class

霸气de小男生 提交于 2019-12-02 19:52:56
问题 Today i was doing some mailing stuff in the php, I found that there are two methods for that one is the simple mail function provided by the Php and the second i found on the internet it was about using the PHP mailer class from the site https://github.com/PHPMailer/PHPMailer. the problem is that which i run my program than the mail is not being sent. Let's have a look at the code <?php include 'PHPMailer-master/class.phpmailer.php'; $mail = new PHPMailer(); // create a new object $mail-

Problem with using PHPMailer for SMTP

 ̄綄美尐妖づ 提交于 2019-12-02 18:17:09
问题 I have used PHPMailer for SMTP and there is problem in sending mail with error "Mailer Error: The following From address failed: no-reply@mydomain.org.uk" My code is as follows: $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->Host = "localhost;"; // SMTP servers $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = ""; // SMTP username $mail->Password = ""; // SMTP password $mail->From = $email_address; $mail->FromName = $email_address; $mail->AddAddress(