Windows command line send mail Blat.exe

Source: Internet
Author: User
Tags rar

Introduction to Windows command line send mail Blat.exe

Download the latest kit and unzip and copy it to the System32 directory on the operating system disk. My environment is c:windowssystem32.

The confirmation file has been copied past:

Blat.dll

Blat.exe

Blat.lib

Batch Command Example:

-----------------Example Begins-----------------------------------------

@echo off

,:::::::: Parameters:::::----parameter settings

Set from=xxx@163.com

Set User=xxx

Set Pass=xxx

Set to=xxx@163.com

Set subj= test

Set Mail=mail_body.txt

Set server=smtp.163.com

Set Attach=attach.rar

Set Debug=-debug-log Blat.log-timestamp

::::::::-::::--£ blat::-----

rem Blat%mail%-to%to%-base64-charset gb2312-subject%subj%-server%server%-F%from%-u%user%-pw%pass%-attach% attach%%debug%

-----------------Example End-----------------------------------------

After testing, the Chinese content is not a problem (note the source file encoding), support 163 of such systems,

Mail_body.txt: Body

Attach.rar: Accessories

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.