Use PHPMailer to send emails in Yii Framework
EMailer is a simple encapsulated PHPMailer class.Usage
As a common component:
In this example, use SMTP as the sending method to create a component in the controller:
Host =
;$mailer->IsSMTP();$mailer->From = 'wei@example.com';$mailer->AddReplyTo('wei@example.com');$mailer
automatically synthesizes functions that rely on these function implementations (built-in types do not follow these rules)Default Construstor:1) A class provides any constructors that are customized2) A class that has a member or parent of a destructor labeled delete or no access, or its own destructor is marked as delete or not authorized to accessClass demon{ ~demon () =delete;}; Class Deriveddemon:pu
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
aaazzzaaazzzaaazzzaaazzzaaazzz.B. Example of mail content:From: To: Date: Fri, 13 Oct 2006 06:40:41 + 0900
Message-ID: Mime-type: 1.0
Content-Type: text/plain;
Charset = "iso-2022-jp"
Content-transfer-encoding: 7bit
X-mailer: Microsoft Office outlook 11
X-mimeole: produced by Microsoft mimeole v6.00.2900.2962
Thread-index: acburxf6lfrcnxfgsjgjb72bbtc36w =
Aaazzzaaazzzaaazzzaaazzzaaazzz
Return-path: Delivered-to: zhao@xxxx.com.cn
Received: (Qmail 195
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
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
Original post link: http://bbs.game.mop.com/viewthread.php? Tid = 1660638
When I came home quietly, the teacher was lying on the couch in front of the fireplace looking at a thick old book with a dark red cover. When he saw me, he quickly stuffed the book to the mat. Unfortunately, I still saw it.
"As a young lady, it's really a shame to come back in the early hours of crazy outside, Miss Mary ." The teacher was lying on the sofa with a deliberate face.
"As an old warehouse, it is irration
Fighting AresT2 Five pieces +t1 three piecesShoulder Clothes: Peng DemonBelt Wristband: White LionDemon injury: 2500Other racial damage: 1250Skill Selection:1, true June fireExplosion, speed, hot, fire beam (full)2. Click (with Hideous)Poly Power3, Ice Lotus (single brush)Frost Curse4. Thunder LeadsElectric power, Thunder Shield, Poly estifcation, electric shock, maximum damage (full)5. Red Fire method CurseRate of knowing (full)6, Chase Xingchi power (three times chasing stars, Thunder cited, i
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
You can use the Bean's Init-method and Destroy-method properties to initialize and destroy the bean.Define a Hero class: Packagecom.moonlit.myspring; Public classHero { Public voidborn () {System.out.println ("The hero is born."); } Public voidDefaultborn () {System.out.println ("The hero is born by default."); } Public voiddoAction () {System.out.println ("The Hero Save the world."); } Public voiddead () {System.out.println ("The hero is dead."); } Public voidDefaultdead () {Sys
the morning, I came out and waited for the car. A few people were out of date. One of them took another person and said "old demon" Yun. I turned and rushed into the group and asked, "Who is the old demon ?"
The person who was pulled said, "I am ."
I said, "I am a bird of prey ."
Everyone was very excited when I met an acquaintance. Old demon pulled a person nex
; Body background="Images/1.jpg" text="#006FFF" bgproperties="Fixed"> -- BR> a href="Http://blog.sina.com.cn/s/blog_d8f0eacd0102vygf.html">Sourcea> a href="Body2.html">Returna> BR>BR>The demon should seal the light: "Come to this place, do you have a better mood?" ”BR>BR>Wearily no injury: "Here is his end, and I can only in the aftermath, so memory of his existence." ”BR>BR>The demon should seal the
by this wudu. In reality, there are many Buddhist disciples, self-awareness, meticulous repair "ring, set, Hui", the end is still "greedy, angry, crazy", because do not understand the "greed, anger, fetish" nature. Five elements of the mountain after the two dprkorea, past this mountain, once the unrest of the heart finally jumped out of the three boundaries. Monkey King a somersault on 108,000 Li, exactly is Lingshan distance, what meaning? The meaning is: Lingshan again far is the heart of a
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.