下你所需,载你所想!
汇集开发技术源码资料

发送电子邮件.cpp

:2.85KB :1 :2022-09-24 21:36:29

部分简介

发送电子邮件.cpp如果开发者对于本文件有需要的可以参考。
int main() {

cout << "请输入接收者的邮箱:" << endl;
cin >> EmailTo;

cout << "请输入发送者的邮箱:" << endl;
cin >> EmailFrom;

cout << "请输入发送者的密码" << endl;
cin >> Password;

cout << "请输入邮件的Subject:" << endl;
cin >> Subject;
sprintf(info,"Subject: %s\r\n",Subject);

cout << "请输入要发送的内容:" << endl;
cin >> detail;
sprintf(EmailContents,"From: \"163邮箱\"<%s>\r\n" "To: \"163邮箱\"<%s>\r\n" "%s\r\n" "%s",EmailFrom,EmailTo,info,detail);
SendMail(EmailTo,EmailContents);
return 0;
}

热门推荐

相关文章