Under Linux, the SMTP Client Program SMTPCLIENT: http://www.engelschall.com/sw/smtpclient/ SMTPCLIENT only supports quoted-printable mime, refer to the original program, you can support Application. / OCTET-STREAM accessory Send. information such as: SMTPclient: unexpected reply: 554 Service unavailable; Client host [218.79.104.4] blocked using cblless.anti-spam.org.cn; Mail from 218.79.0.0/16 refused, see http: // anti-spam. Org.cn/services/rblquery.php?ip=218.79.0.0 The commonly used authentication method is described in the following, when the implementation is introduced, the individual believes that using plain is relatively simple, you can send the username and password at the same time, most SMTP Server supports this authentication method. Http://www.fehcom.de/qmail/smtpauth.html When adding authentication in SMTPCLIENT, only 3 options are added, one logo uses authentication, and the other two respectively marker username and Password, subsequently in the program with the server interactive process to add auth chamber. 2. Add MIME (MULTIPART) MIME format See: http://dev.9cbs.net/develop/Article/18/18448.shtm Among them, the attachment is sub-64 encoding, and another Free Software: base64. Download address: http://www.fourmilab.ch/webtools/base64/ When adding MIME code to the SMTPCLIENT program, you need to pay special attention to the message header and email. The body must be output between the air, I have been ignored, and the mail received by MUA can see the attachment flag of the paper clip, but there is no display of attachments and email. If you view the original file, the encoded content is available. of.