loadrunner做邮件系统压力测试,邮件接收时间显示问题
用LR录制foxmail发送邮件脚本,脚本回放成功,但是有两个问题1.收件箱显示发件人的名称是loadrunneruser+发件人名字
2.发送邮件时间显示1970-01-01 脚本如下:
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",
MAILDATA,
"AttachRawFile=mailnote1_01.dat",
"AttachRawFile=mailnote1_02.dat",
LAST);
smtp_logout_ex(&smtp1);
smtp_free_ex(&smtp1);
return 0;
}
接收到的信头 时间是乱码 邮件中显示是1970年1月1日求原因 求解决方法
页:
[1]