PHP Mailer is a very useful PHP email sending module. It can call local SMTP to send emails or remote SMTP to send emails, however, you need to pay attention to some things during use. Otherwise, the sending may fail or cannot be called at all. This article describes the problems and solutions I encountered when using this class, briefly describe the usage and precautions of PHP mailer.
First, download the
Recently, a friend made a blog using WordPress, but he was worried about sending emails. by default, WP cannot send emails to Unix mail servers, such as Sendmail. I have been busy for two days and basically solved this problem. while hanging out in the community, a dude mentioned that phpmailer could be used. Later, he checked all wp2.2 files and found that it had come with this stuff. however, you have to make a small modification to get it to work. Thanks to this brother, all the code comes fr
The first is to open the pop of Yahoo Chinese mail according to the methods circulating on the network.There are two methods:Method 1:First, log on to your Yahoo mailbox. Note that if you are *** @ yahoo.com.cn, you will be charged for enabling pop in Yahoo Mail abroad, and there is no other way to use it. Choose "Mailbox option"> "account information" in sequence. At this time, you are required to verify the password. Enter the correct password and set the account information. Click "edit" link
1. installation. IIS6 of Windows2003 integrates the SMTP service, which is very easy to use. However, it is not installed by default. Please install it. Start> set> Control Panel> add or delete Programs> Add/delete Windows Components> Application Server> Internet Information Service (IIS)> SMTP service, check and confirm.
2. Configure the SMTP server. Start> set
CodeIgniter sends an email (smtp ). $ This-load-library (email); $ config [protocol] smtp; send to QQ user to display Chinese with ISO-8859-1 $ config [charset] ISO-8859-1; send to 163 user, gb2 $ this-> load-> library ('email ') to display Chinese characters ');
$ Config ['protocol'] = 'smtp ';// Send it to the QQ user and use 'ISO-8859-1 'to display Chinese ch
20150307 sending mail using the SMTP protocol2015-03-07 Lover Snow ChildOne, SMTP anonymous e-mail?
Microsoft Windows [Version 6.1.7601]Copyright (c) Microsoft Corporation. All rights reserved.?C:\USERS\ADMINISTRATOR>NSLOOKUP-Q=MX qq.comServer:xiaoqiangaddress:192.168.31.1?Non-authoritative Answer:qq.com MX preference = $, mail exchanger = mx2.qq.comqq.com MX preference = $, mail exc
HiChina hosts all seem to need to send emails through SMTP, and enable fsockopen. However, the SMTP sending method of WordPress is steam_connect_client instead of fsockopen.
HiChina hosts all seem to need to send emails through SMTP, and to enable fsockopen (this can be enabled in HiChina background. if not, please contact HiChina customer service ). But the
Phpmailer is a PHP function package used to send emails through SMTP.
Its functions include:
* Specify multiple recipients, CC addresses, hidden addresses, and reply addresses when sending mail.* Multiple email codes are supported, including 8bit, base64, binary, and quoted-printable.*. Supports SMTP Authentication.*. Support for redundant SMTP servers*. Support
Because PHP does not provide out-of-the-box SMTP functions, it provides a less flexible mail () function that requires support on the server configuration and does not support SMTP authentication, and is not recommended for use in many situations. The purpose of this article is to specify the direction for the novice, and did not involve those advanced content, a limited level of their own, and also worry a
Configure mailx in Centos to send emails using external smtpConfigure mailx in Centos to use external smtp to send mail to install mailx
yum install mailxConfigure mailx
I recommend 163 mail, of course, QQ mail is also acceptable, PS: Remember to enter the mailbox to open SMTP
Vi/etc/mail. rc // if it does not exist, edit/etc/nail. rc.
Add the following code at the end of the file. Enter your own account an
PHP uses the SMTP service to send mail first
Define (' smtp_status_not_connected ', 1, true);d efine (' smtp_status_connected ', 2, true); class smtp{var $connection; var $recipients; var $headers; var $timeout; var $errors; var $status; var $body; var $from; var $host; var $port; var $helo; var $auth; var $user; var $pass; /** * parameter is an array * Host
Phpmailer version used: 5.2.1The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
Copy Code
$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 d
standard protocols for similar mail access to POP3. On the other hand, when you turn on IMAP, the messages you receive from the email client remain on the server, and the actions on the client are fed back to the server, such as deleting the message, marking the read, and so on, and the message on the server will act accordingly. So whether you log in to the mailbox from the browser or the client software login mailbox, see the message and status are consistent
: This article mainly introduces two methods for sending mails by php using smtp. For more information about php tutorials, see. Original article: http://www.jbxue.com/php/25502.html
This article introduces two methods for sending mails in php: sending mails using the built-in mail () function in PHP and sending mails using the mail class that encapsulates the SMTP protocol, we recommend that you use the ma
Original SMTP authorization code and working principle [transfer]-One-Stop Conversion
Http://www.chinaunix.net Author: tutux published at: 16:41:54
[Comment] [View Original] [mail server discussion board] [close]
Original SMTP command code and working principle 1. SMTP wo
The example in this article describes the Java implementation method for sending mail based on SMTP. Share to everyone for your reference. The implementation method is as follows:
Import Java.util.Date;
Import java.util.Properties;
Import Javax.mail.Authenticator;
Import Javax.mail.Message;
Import javax.mail.PasswordAuthentication;
Import javax.mail.Session;
Import Javax.mail.Transport;
Import javax.mail.internet.InternetAddress;
Import Javax.ma
POP3
POP3 is the abbreviation for post Office Protocol 3, the 3rd version of the Post Office Protocol, which specifies how to connect personal computers to the Internet's mail servers and electronic protocols for downloading e-mail. It is the first offline protocol standard for Internet e-mail, POP3 allows users to store messages from the server on a local host (that is, their own computer) while deleting messages saved on the mail server, while the POP3 server is the receiving mail server that
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.