Use sendEmail in Linux to send emails with attachments

Source: Internet
Author: User
In Linux, sendEmail is a lightweight, command line SMTP mail client that uses sendEmail to send emails with attachments. If you need to use the command line to send emails, sendEmail is a perfect choice: easy to use and powerful. this is designed for php, bash, perl, and w... use sendEmail in Linux to send emails with attachments
SendEmail is a lightweight, command line SMTP mail client. If you need to use the command line to send emails, sendEmail is a perfect choice: simple to use and powerful. this is designed for use in php, bash, perl, and web sites. The above is a brief introduction to sendEmail. do not mix it with sendmail. If sendEmail is used, you will not like sendmail anymore. install sendEmail. send mail 1 #/usr/local/bin/sendEmail-f ttlsafrom@163.com-t ttlsato@qq.com \ 2-s smtp.163.com-u "I am mail subject-send attachment"-o message-content- type = html \ 3-o message-charset = utf8-a/data/site/ttlsa.rar-xu ttlsafrom@163.com \ 4-xp 123456-m "I am mail content-see Attachment" send the following message is displayed after successful execution: jul 29 15:02:53 e10074 sendEmail [26347]: Email was sent successfully! Command description: 01/usr/local/bin/sendEmail command main program 02-f ttlsafrom@163.com sender mail 03-s smtp.163.com sender mail smtp server 04-u "I am a subject" Mail title 05-o message-content-type = html mail content format, html indicates that it is in html format 06-o message-charset = utf8.07-a/data/site/a.rar send ttlsa.rar this file 08-xu ttlsafrom@163.com sender email user name 09-xp 123456 sender email password 10-m "I am mail content" Mail content
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.