If you encounter this problem, write it out and share it with you.
This program does not use the javamail API, but directly processes the sent mail according to the requirements of the SMTP protocol. Although it is troublesome, it is helpful to understand the details of the mail protocol.
This article is divided into two parts, the first part is the SMTP command introduction (this is copied from somewhere e
I first Googled it and found that many questions were asked but there were no relevant answers, and no related classes were found in phpclasses. So I started to try curl while reading the stmp protocol.
SMTP protocol
You can find multiple related examples on the Internet. You can experiment with telnet to connect to the mail server.
Copy codeThe Code is as follows: $ telnet email SMTP service address 25
Try
This article is reprinted and may be useful to everyone.
SummaryThis article briefly introduces the process of sending emails through the SMTP protocol (RFC2554), and discusses in.. NET using SMTP to send mail from simple to traditional three different solutions, their possible problems and their solutions. -------------------------------------------------------------------------------- Directory
Introduct
This article explains how to configure the local domain for the SMTP service in Windows Server 2003. How to change the name of the default domain, configure the alias domain, and specify the drop folder.
The SMTP service domain is used to organize messages to be delivered. The SMTP virtual server has at least one domain: the default local domain.
Local domains
?
/*
* Mail Send Class
* Author: More than a rookie
* Contact Email: KINGERQ at MSN DOT com
* Date Created: 2005-08-19
* Note: This category for the modified, forget the source of
*/
Class Smail {
Your SMTP server vendor, which can be a domain name or IP address
var $smtp = "smtp.163.com";
SMTP requires authentication
Want to add mail to the framework, so tidy up under the Python mail send functionFirst Python is a mail-enabled send, built-in SMTP library, support for sending plain text, HTML, and adding attachments to messagesAfter the mailbox, such as 163, QQ, Sina and other mailboxes by default to shut down the SMTP service, we need to manually openSent through the sender's SMTP
The code for sending mails using SMTP in php the latest project needs to use SMTP to send mails. the previous library class does not exist and does not like to install pear or use the net/smtp class of pear, it is too complicated. The core is extracted from discuz and slightly modified.
Find the SMTP protocol commands
because PHP does not provide ready-made SMTP functions, but provides a less flexible mail () function, this function requires server configuration support, and does not support SMTP authentication, in many cases does not work properly, Therefore, it is not recommended. The purpose of this article is to identify the direction of the novice, and does not involve those advanced content, the level of its own li
Sending mail via socket means sending the above commands to the mail server through the client, so as to realize the SMTP protocol to send mail. PHP uses the socket method to send the mail code as follows :/***
Sending mail via socket means sending the above commands to the mail server through the client, so as to realize the SMTP protocol to send mail. PHP uses the socket method to send the mail code as fo
Author: Rockay (Liu Qichao, Liu Tao)Page: http://www.cnblogs.com/RockayEmail: rockay_liu@126.com
Note: Some of them refer to online materials.
Recently, a JAVA mail group function has been provided for friends. Because I have been engaged in. NET in the past year, and JAVA has almost forgotten it, I checked some information online. Share with you:
SMTP command
What is SMTPSMTP (Simple Mail Transfer Protocol): the transmission Protocol used to transmi
A recent project needs to use SMTP to send mail, the previous library class does not exist, do not like to install pear or use Pear's net/smtp class, it is too complicated. The core is extracted directly from the Discuz and slightly modified.
From the Protocol analysis Web, find the commands and answers to the SMTP protocol, and the
DescriptionLinux's own mail can implement external SMTP mail. There is no need to configure the Postfix,sendmail mail server locally, it does take a bit of time to configure the package.
Realize:1. Turn off the SendMail service or postfix service of this machine
The code is as follows
Copy Code
SendMail# Service SendMail Stop# chkconfig SendMail offPostfix# service Postfix Stop# chkconfig Postfix off
2. Modify/e
smtp.php
Copy CodeThe code is as follows:
Class SMTP
{
/* Public Variables */
var $smtp _port;
var $time _out;
var $host _name;
var $log _file;
var $relay _host;
var $debug;
var $auth;
var $user;
var $pass;
/* Private Variables */
var $sock;
/* Constractor */
function smtp ($relay _host = "", $smtp _port = +, $auth
A complete SMTP class of PHP (solve the problem when the mail server requires verification), read a complete SMTP class of PHP (solve the problem when the mail server requires verification), smtp. php? Phpclasssmtp {/* PublicVariables */var $ smtp_port; var $ time_out; var $ host_name; var $ lo
Smtp. php
Class
smtp.php
Copy CodeThe code is as follows:
Class SMTP
{
/* Public Variables */
var $smtp _port;
var $time _out;
var $host _name;
var $log _file;
var $relay _host;
var $debug;
var $auth;
var $user;
var $pass;
/* Private Variables */
var $sock;
/* Constractor */
function smtp ($relay _host = "", $smtp _port = +, $auth
Ecshop implements smtp mail sending. Ecshop implements smtp mail sending this article mainly introduces how ecshop implements smtp mail sending. if you need it, you can refer to the ECShop smtp method to send mail, in the cls_smtp file, ecshop implements smtp mail sending.
SMTP Protocol Introduction
1. IntroductionSMTP is called Simple Mail transmission protocol (Simple Mail Transfer Protocal). It aims to provide efficient and reliable mail Transmission for users.. An important feature of SMTP is its ability to transmit mails through transmission, that is, mails can be transmitted over hosts on different networks.. In either case, email is transmitted from th
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.