|
Action()
{
smtp1 = 0;
smtp_logon_ex(&smtp1, "SmtpLogon",
"URL=smtp://smtp.163.com",
"CommonName=LoadRunner User",
LAST);
smtp_free_ex(&smtp1);
smtp2 = 0;
smtp_logon_ex(&smtp2, "SmtpLogon",
"URL=smtp://smtp.163.com",
"LogonUser=qq198",
"LogonPass=123456",
"CommonName=LoadRunner User",
LAST);
smtp_send_mail_ex(&smtp2, "SendMail",
"To=qq168@163.com",
"From=qq198@163.com",
"Subject=test",
"ContentType=multipart/mixed;",
MAILOPTIONS,
"X-mailer: Foxmail 6, 2, 103, 20 [cn]",
MAILDATA,
"AttachRawFile=c:\\678.zip",
"AttachRawFile=c:\\test.txt",
LAST);
smtp_logout_ex(&smtp2);
smtp_free_ex(&smtp2);
return 0;
}
我这附件怎么不能以附件的形式发送出去呢,收件箱收到的是附件里面的内容,而不是这个附件,这是怎么回事?????? test.txt中内容为:123456789 结果收件箱那显示的就是123456789而不是我想要的附件test.txt |
|