A:收邮件步骤:
一:下载jmail.dll文件放到C:\Windows\System32文件夹中
二:以管理员的身份注册jmail.dll组件,即执行命令:regsvr32 jmail.dll
三:创建控制台应用程序,源码为:
//将jmail.dll直接拷贝到工程中可用#import "jmail.dll"或者使用绝对路径,如下
#import "E:\\SRC\\jmail.dll"
void main()
{
CoInitialize(NULL);
jmail::IMessagePtr pMessage("JMail.Message");
pMessage->From = "uutkuu@163.com"; //发送邮箱
pMessage->FromName = "辰南"; //not must
pMessage->AddRecipient("abc@qq.com","",""); //请输入你的接收邮箱
pMessage->Priority = 3;
pMessage->Charset = "GB2312";
pMessage->Subject = "happy birthday"; //not must
pMessage->Body = "终于有一天,辰南从神魔陵园复活而出,\