51Testing软件测试论坛
标题:
LR利用foxmail发邮件部分的脚本代码
[打印本页]
作者:
fish_yy
时间:
2007-12-9 11:08
标题:
LR利用foxmail发邮件部分的脚本代码
LR利用foxmail发邮件部分的脚本代码
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=yhgl_soft@163.com",
"LogonPass=abcdef", 密码
"CommonName=LoadRunner User",
LAST);
smtp_send_mail_ex(&smtp2, "SendMail",
"To=yhgl_soft@163.com",
"From=yhgl_soft@163.com",
"Subject=hi", 标题
"ContentType=text/plain;",
"charset=\"gb2312\"",
MAILOPTIONS,
"X-mailer: Foxmail 5.0 [cn]",
MAILDATA,
"MessageText=你好hi yuy\r\n", 内容
LAST);
smtp_logout_ex(&smtp2);
smtp_free_ex(&smtp2);
return 0;
posted on 2006
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2