There are a number of factors to consider when sending mail, including sending mail clients (generic encoding implementations), sending and receiving mail server settings, and so on. If you use a third-party mail server as the sending server, you
The system is web-based and references a third-party API:mail.jar development package.I. Introduction to the directory structureWe can download the Mail.jar development package on the Oracle website, the version I downloaded is 1.4.5. After the
Overview
1, mail-related standards
The JavaMail service program provided by the manufacturer can selectively implement certain mail protocols, and common mail protocols include:
SMTP (Simple Mail Transfer Protocol): The Easy Mail Transfer
The emphasis is one_mail function. Use the Mail_mimedecode class to extract headers and message bodies from messages.
Copy Code code as follows:
Header ("content-type:text/html; Charset=utf-8 ");
/*
* Record kid words and insert INTO
The world's leading multi-channel intelligent Marketing Service organization Webpower has been committed to the global e-mail marketing scientific concept, the dissemination of advanced technology, targeting the particularity of the Chinese Mail
PHP uses PEAR_SMTP to send mail, pear_smtp send mail
PHP comes with the mail function compared to the egg pain, under win configured SendMail or unable to send mail. A third-party pear/mail can be used to send servers directly through SMTP
In practical use, such as your Taobao shopping, apply for a refund, when you see a refund mail in the mailbox, or you register an account, apply for verification email notification and so on, these are mail sent, here will be introduced under the
In PHP development and utilization of Phpmailer send mail is a common practice, this is more useful than PHP mail, let's see how phpmailer send email with attachments.
. First download the latest version of the package to
The Mail function under Windows system needs to be configured
1. Download from http://glob.com.au/sendmail/Sendmail.zip2. Extract to C: Under, such as C:\php\sendmail, the best short path, long path name may cause problems.3. Modify PHP.ini as
Supports text-only and HTML-formatted mails, including multiple recipients, multiple CC messages, multiple private CC messages, and attachments. Comments are welcome. I am sending an email with an attachment. I have a txt file of 0 B each time. I
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.