|
Action()
{
lr_start_transaction("1");
imap1 = 0;
imap_logon_ex(&imap1, "IMapLogon",
"URL=imap://postmaster@test.com:123@192.168.0.126",
LAST);
imap_status_ex(&imap1, "MailboxStatus",
"Mailbox=INBOX",
LAST);
imap_status_ex(&imap1, "MailboxStatus",
"Mailbox=INBOX.Drafts",
LAST);
imap_status_ex(&imap1, "MailboxStatus",
"Mailbox=INBOX.Sent",
LAST);
imap_status_ex(&imap1, "MailboxStatus",
"Mailbox=INBOX.Spam",
LAST);
imap_status_ex(&imap1, "MailboxStatus",
"Mailbox=INBOX.Trash",
LAST);
imap_logout_ex(&imap1);
lr_end transaction("1", LR_AUTO);
return 0;
}
上面是我录制的脚本,验证回放的时候,总是提示失败,提示的内容是:fail to connect to test.com:123
运行到imap_logon_ex(&imap1, "IMapLogon",
"URL=imap://postmaster@test.com:123@192.168.0.126",
的时候失败的。。。
有哪位高人指教下,这个为什么连接失败呢??
怎么设置呢? |
|