Discover uuencode mail attachment, include the articles, news, trends, analysis and practical advice about uuencode mail attachment on alibabacloud.com
How E-mail Works
Every day the citizens of the Internet send each other billions of e-mail messages. if you are online a lot, you yourself may send a dozen or two e-mails each day without even thinking about it. obviusly, e-mail has
Ubuntu:
First install mail
sudo apt-get install Mailx
Install postfix sudo apt-get install postfix again (configure during installation and follow the prompts)
Send mail Command sample cat "Content" | Mail-s "Subject" yl33643@126.com
In
Because you often work under Linux, so many times you need to send your work reports or other useful stuff to the people involved, so take the time to study how to send mail under Linux. We can usually use the following 3 to send the way:
1. Use
When it comes to sending mail, first mention SMTP (hehe, the master will skip this section!). )。 The full name of SMTP is "Simple Mail Transfer Protocol", which is simply the message Transfer Protocol. It is a set of specifications for transferring
Because I often work under Linux, so many times need to send their work reports or other useful things to the relevant people, so take the time to study how to send mail under Linux. We can usually use the following 3 to send the method:1. Use the
When it comes to email, start by mentioning SMTP. The full name of SMTP is "Simple Mail Transfer Protocol", which is simply a message transfer protocol. It is a set of specifications for transmitting messages from the source address to the
Mail Configuration
Configure new MAILX to use external mailboxes to send mail:
Edit/etc/nail.rc (Note that is not an older version of/etc/mail.rc): vi/etc/nail.rcAdd two lines:Set from=myname@qq.com smtp=smtp.qq.comSet Smtp-auth-user=myname
Copy CodeThe code is as follows:
Class Email {
---setting global variables
var $mailTo = ""; Recipient
var $mailCC = ""; Cc
var $mailBCC = ""; Secret CC
var $mailFrom = ""; Sender
var $mailSubject = ""; Theme
var $mailText = ""; Text-Formatted
We recommend that you send PHP emails with complete functions. PHP -- The following functions are very powerful: not only can emails in html format be sent, but can also be used to send attachments: Copy the code as follows :? Include "email. class"
PHP class-a full-featured mail class we have already introduced a class for group Mail, which can only send text emails, which of the following functions is very powerful? can I send html-format emails and attachments? PhpclassEmail {--- set the
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.