一.发送示例代码
QString fromer = "xxxxxx@qq.com";
QString toer = "xxxxxx@qq.com";
QString smtpserver = "smtp.qq.com";
QString subject = "Test title ";
QString mailmessage = "this is a test ";
m_mailer = new jwsmtp::mailer(toer.toStdString().c_str(), fromer.toStdString().c_str(), subject.toStdString().c_str(), mailmessage.toStdString().c_str(), smtpserver.toStdString().c_str(), jwsmtp::mailer::SMTP_PORT, false);
//mail_.setsender(fromer.toStdString().c_str());
m_mailer->username(fromer.toStdString().c_str());
m_mailer->password("xxxxxx");
m_mailer->send();
二.源码