Phpmailer Loop Sending message failed
This post was last edited by an5464684 on 2013-12-27 18:20:21
Use Phpmailer, account and password are correct, and test pass.
1. Single send will succeed
2. However, when writing a cyclic email, only the first successful send, the subsequent send failed, check the log display: Could not authenticate, verify that failed.
What is the reason for this?
Try{$mail = new Phpmailer ();$mail->issmtp (); Set Mailer to use
[Laravel5.2 documentation] architecture-service container
1. Introduction
Laravel service container is a powerful tool for managing dependencies and executing dependency injection. Dependency Injection sounds fancy. its essence is to inject class dependencies into classes through constructors or in some cases through the set method.
Let's look at a simple example:
Mailer = $ mailer;}/*** buy a podcast
Server | Mail server This article assumes that the user wants to set up an e-mail server in the campus network environment to provide mail service for the users of the unit. The server has a legitimate IP address 202.99.11.200 and a valid domain name mail.linuxaid.com.cn, and the MX record for DNS also points to the domain name (note: Here The example domain name and IP address are fake domain names and addresses). To meet domain name requirements, DN
following result: 163.com text = "V=spf1 Include:spf.163.com-all" Where: = "v=spf1 include: Spf.163.com-all "is the SPF value of 163.com. This data shows which of the 163.com valid legitimate servers are!So how do we create it? Enter the domain name resolution create a TXT record and fill in the correct SPF data to take effect.Enable the SPF feature in mdaemon7.x and make the appropriate adjustments. In addition, the 8.x version adds a new Domainkey signature, but MDaemon has automatically crea
PHPMailer: FeaturedemailtransferclassforPHP. Php (as the mainstream development language) Mailer: Featuredemailtransferclassforphp (as the mainstream development language) php (as the mainstream development language) mailer is a very php (as the mainstream development language) Mailer: Featured email transfer class for php (as the mainstream development language)
/Main. cf
Previously, my myhostname and mydestination formats were rejected by Netease mail because they did not meet the requirements (name @ machine-name:
From MAILER-DAEMON sat Dec 1 21:22:58 2012From export yanh @ export yanh-virtualbox
Changed:
From MAILER-DAEMON sat Dec 1 23:10:20 2012From baiyanh@baiyanh.com
You can, but there is still a problem with sending it to the
Real-time monitoring of mail server status requires scripting tasks to support
#!/bin/bash
#Purpose: Check Postfix and Pop3 MySQL service status
#Author: Andylhz
#Date: 2010-07-29
dt= ' Date ' +%y:%m:%d:%h:%m '
mailer=root@test.cn
Mailer2=138xxxxxxxx@139.com
host=mail.test.cn
#Dovecot服务的检查 exists, the message appears normal, otherwise the service will be restarted
dovecot= ' ps aux |grep pop3-login | Grep-v "grep" |awk {' Print $11 '} | Uniq
First, the phpmailer version used by ecmall is too low and does not support encrypted connections.
Then, make some adjustments to the corresponding code.
1. Overwrite phpmailer
Download the attachment:Copy codeThe Code is as follows:Http://cywl.jb51.net: 81/201405/yuanma/ecmall_phpmailer_lib(jb51.netw..zip
2. Modify lib
Two lib involved: mail. lib. php and mail_quequ.lib.php
Add a parameter to the constructor of these two classes. For example, Mailer
First, the phpmailer version used by ecmall is too low and does not support encrypted connections.
Then, make some adjustments to the corresponding code.
1. Overwrite phpmailer
Download the attachment:
Http://files.cnblogs.com/x3d/ecmall_phpmailer_lib.zip
2. Modify lib
Two lib involved: mail. lib. php and mail_quequ.lib.php
Add a parameter to the constructor of these two classes. For example, Mailer
Function _ construct ($ from, $ email, $ protocol, $
https://github.com/Synchro/PHPMailer# Download Address
Http://phpmailer.worxware.com/index.php?pg=methods Method Description
Updated for Phpmailer v5.0.0
Methods (v5.0.0)
Type
Default
Description
Set ($name, $value)
String $nameString $value
Method provides ability for user to create own custom pseudo-properties (like X-headers, for example). Example use:$mail->set (' x-msmail-priority ', ' Normal ');
Addcustomheader ($value)
Stri
First, the Phpmailer version used primarily by Ecmall is too low to support encrypted connections.
Then, you have to make some adjustments to the corresponding code.
1. Cover Phpmailer
Please download from the attachment:
Copy Code code as follows:
Http://cywl.jb51.net:81/201405/yuanma/ecmall_phpmailer_lib (jb51.net). zip
2. Transform Lib
Involving two lib:mail.lib.php, mail_quequ.lib.php
In the constructors of these two classes, add a parameter pass. such as
=/var/mailVerbose=offPath=/bin:/sbin:/usr/bin:/usr/sbin/:/usr/local/bin:/usr/local/sbinLogfile=/var/log/procmail.log# Advertising Letter Filtering mechanism# in principle, the probability of miscalculation is higher, because some electronic periodicals are sent using the relevant programs, so special letters will be transferred to a specific file for future manual confirmation. After the confirmation is correct, then change the setting to/dev/null, so that the letter can be deleted directly, so
First, the Phpmailer version used primarily by Ecmall is too low and does not support encrypted connections.
Then, you have to make some adjustments to the corresponding code.
1. Cover Phpmailer
Please download from the attachment:
Http://files.cnblogs.com/x3d/ecmall_phpmailer_lib.zip
2. Transform Lib
Involving two lib:mail.lib.php, mail_quequ.lib.php
In the constructors for these two classes, add a parameter pass. such as Mailer
function __construct
pro framework is integrated with the mailbox class, you can see in the common/config/main-local.php file:
'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'viewPath' => '@common/mail',],
This is the related configuration file, which is put into the *-local file because it contains sensitive information of the personal account.
The configuration information above is incomplete. You need to fill in t
more like an abstract class, because it can not only have abstract methods, but also have specific implementations. However, this statement is too one-sided. After all, the interface still cannot possess the State, while the abstract class can hold the State. At the same time, from the inheritance point of view, a class can implement multiple interfaces, and a class can only inherit one class at most.Use Lambda expressions to create smoother APIsFor example, there is a type for sending mail and
Common -- amp; gt; config -- amp; gt; main. php settings, code: {code ...} code in PasswordResetRequestForm: {code ...} however, you can use the following method to receive the sent Email {code ...} // common --> config --> main. php settings, code:
'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'viewPath' => '@common/mail', 'useFileTransport' => FALSE, 'transport' =>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.