|
2#
楼主 |
发表于 2013-9-12 15:31:12
|
只看该作者
脚本如下:
Action()
{
smtp1 = 0;
smtp_logon_ex(&smtp1, "SmtpLogon",
"URL=smtp://192.168.1.1",
"LogonUser=test1@test.com",
"LogonPass=test_1234",
"CommonName=LoadRunner User",
LAST);
smtp_send_mail_ex(&smtp1, "SendMail",
"To=test2@test.com",
"From=<test1@test.com> SIZE=1658",
"Subject==?gb2312?B?wrzWxr3Fsb4tudix1bfAu/DHvQ==?=",
"ContentType=multipart/alternative;",
MAILOPTIONS,
"From: test1 <test1@test.com>",
"To: test2 <test2@test.com>",
"Reply-To: test1 <test1@test.com>",
"X-Priority: 3",
"X-GUID: DA7FACFA-677E-43CF-896E-62CC46771AB1",
"X-Has-Attach: no",
"X-Mailer: Foxmail 7.0.1.92[cn]",
MAILDATA,
"AttachRawFile=mailnote1_01.dat",
"AttachRawFile=mailnote1_02.dat",
LAST);
smtp_logout_ex(&smtp1);
smtp_free_ex(&smtp1);
return 0;
}
接收到的信头 时间是乱码 邮件中显示是1970年1月1日 求原因 求解决方法 |
|