|
4#
楼主 |
发表于 2010-6-17 16:51:25
|
只看该作者
天哪,不经意间终于找到问题所在了,正确代码如下,请注意红字部分
以下是Action 里的代码,正文的dat代码没有粘贴
Action()
{
smtp1 = 0;
smtp_logon_ex(&smtp1, "SmtpLogon",
"URL=smtp://smtp.abc.com",
"LogonUser=liptwo@abc.com",
"LogonPass=123456",
"CommonName=LoadRunner User",
LAST);
smtp_send_mail_ex(&smtp1, "SendMail",
"To=liptwo@abc.com",
"From=liptwo@abc.com",
"Subject=test",
"ContentType=multipart/alternative;",
MAILOPTIONS,
"Reply-To: \"shc\" <liptwo@abc.com>",
"X-Priority: 3",
"X-MSMail-Priority: Normal",
"X-Mailer: Microsoft Outlook Express 6.00.2900.5512",
"X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512",
MAILDATA,
"AttachRawFile=mailnote1_01.dat",
"AttachRawFile=mailnote1_02.dat",
LAST);
smtp_logout_ex(&smtp1);
smtp_free_ex(&smtp1);
return 0;
} |
|