用jmail做了一个电子邮箱,在接收和发送时出现的问题 接收到的邮件出现乱码,发送邮件给QQ邮箱时出现错误550 mail content denied,请问一下,怎么破 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CString m_strMailServer; m_strAddres.TrimLeft(); m_strAddres.TrimRight(); m_strMailTitle.TrimLeft(); m_strMailTitle.TrimRight(); if(m_strAddres.GetLength() < 3) { AfxMessageBox("请填写正确的收件人邮箱"); return; } jmail::IMessagePtr pMessage("JMail.Message"); pMessage->From = (LPCTSTR)m_strSender; pMessage->FromName = "yang"; pMessage->AddRecipient((LPCTSTR)m_strAddres, "", ""); pMessage->Priority = 3; pMessage->Charset = "GB2312"; pMessage->Subject = (LPCTSTR)m_strMailTitle; pMessage->Body = (LPCTSTR)m_strContent; if(m_strFile != "") { pMessage->AddAttachment((LPCTSTR)m_strFile, VARIANT_TRUE, "image/gif"); } pMessage->Send((LPCTSTR)m_strMailServer, VARIANT_FALSE); pMessage.Release(); AfxMessageBox("发送成功!"); CString m_strMailServer; m_strAddres.TrimLeft(); m_strAddres.TrimRight(); m_strMailTitle.TrimLeft(); m_strMailTitle.TrimRight(); if(m_strAddres.GetLength() < 3) { AfxMessageBox("请填写正确的收件人邮箱"); return; } jmail::IMessagePtr pMessage("JMail.Message"); pMessage->From = (LPCTSTR)m_strSender; pMessage->FromName = "yang"; pMessage->AddRecipient((LPCTSTR)m_strAddres, "", ""); pMessage->Priority = 3; pMessage->Charset = "GB2312"; pMessage->Subject = (LPCTSTR)m_strMailTitle; pMessage->Body = (LPCTSTR)m_strContent; if(m_strFile != "") { pMessage->AddAttachment((LPCTSTR)m_strFile, VARIANT_TRUE, "image/gif"); } pMessage->Send((LPCTSTR)m_strMailServer, VARIANT_FALSE); pMessage.Release(); AfxMessageBox("发送成功!"); 引用回帖,就把我问的问题回答完整可以吗? CString m_strMailServer; m_strAddres.TrimLeft(); m_strAddres.TrimRight(); m_strMailTitle.TrimLeft(); m_strMailTitle.TrimRight(); if(m_strAddres.GetLength() < 3) { AfxMessageBox("请填写正确的收件人邮箱"); return; } jmail::IMessagePtr pMessage("JMail.Message"); pMessage->From = (LPCTSTR)m_strSender; pMessage->FromName = "yang"; pMessage->AddRecipient((LPCTSTR)m_strAddres, "", ""); pMessage->Priority = 3; pMessage->Charset = "GB2312"; pMessage->Subject = (LPCTSTR)m_strMailTitle; pMessage->Body = (LPCTSTR)m_strContent; if(m_strFile != "") { pMessage->AddAttachment((LPCTSTR)m_strFile, VARIANT_TRUE, "image/gif"); } pMessage->Send((LPCTSTR)m_strMailServer, VARIANT_FALSE); pMessage.Release(); AfxMessageBox("发送成功!"); 引用回帖,就把我问的问题回答完整可以吗?对不起,还是不懂你的意思,不是要发邮件的代码吗 刚试了一下QQ邮箱,又不行啦,泪啊这时发送邮件给QQ邮箱时出错的提示发送邮件给sina邮箱出错的提示发送邮件给163邮箱时,出现local user is not allowed 求一个网游中排队系统的思路 字符串转换为时间 求助,如何添加一个cstatic类的数组与几个static控件进行关联? 在线等,100分,请高手指点,我想做一个分割视图? 一个传送文件的问题请各位高手帮忙看看! 急 前途渺茫,大家来相互安慰一下 怎样使用MFC的CDAO类开发数据库 怎样在ActiveX DLL工程里实现常量接口? 为什么会有此提示呢??? 如何用vc调系统输入法 api函数是? MFC工程如何判断本地机器安装的DX版本? vc2008创建的模态对话框无法拖动
m_strAddres.TrimLeft();
m_strAddres.TrimRight();
m_strMailTitle.TrimLeft();
m_strMailTitle.TrimRight(); if(m_strAddres.GetLength() < 3)
{
AfxMessageBox("请填写正确的收件人邮箱");
return;
}
jmail::IMessagePtr pMessage("JMail.Message");
pMessage->From = (LPCTSTR)m_strSender;
pMessage->FromName = "yang";
pMessage->AddRecipient((LPCTSTR)m_strAddres, "", "");
pMessage->Priority = 3;
pMessage->Charset = "GB2312";
pMessage->Subject = (LPCTSTR)m_strMailTitle;
pMessage->Body = (LPCTSTR)m_strContent;
if(m_strFile != "")
{
pMessage->AddAttachment((LPCTSTR)m_strFile, VARIANT_TRUE, "image/gif");
}
pMessage->Send((LPCTSTR)m_strMailServer, VARIANT_FALSE);
pMessage.Release();
AfxMessageBox("发送成功!");
m_strAddres.TrimLeft();
m_strAddres.TrimRight();
m_strMailTitle.TrimLeft();
m_strMailTitle.TrimRight(); if(m_strAddres.GetLength() < 3)
{
AfxMessageBox("请填写正确的收件人邮箱");
return;
}
jmail::IMessagePtr pMessage("JMail.Message");
pMessage->From = (LPCTSTR)m_strSender;
pMessage->FromName = "yang";
pMessage->AddRecipient((LPCTSTR)m_strAddres, "", "");
pMessage->Priority = 3;
pMessage->Charset = "GB2312";
pMessage->Subject = (LPCTSTR)m_strMailTitle;
pMessage->Body = (LPCTSTR)m_strContent;
if(m_strFile != "")
{
pMessage->AddAttachment((LPCTSTR)m_strFile, VARIANT_TRUE, "image/gif");
}
pMessage->Send((LPCTSTR)m_strMailServer, VARIANT_FALSE);
pMessage.Release();
AfxMessageBox("发送成功!");
引用回帖,就把我问的问题回答完整可以吗?
m_strAddres.TrimLeft();
m_strAddres.TrimRight();
m_strMailTitle.TrimLeft();
m_strMailTitle.TrimRight(); if(m_strAddres.GetLength() < 3)
{
AfxMessageBox("请填写正确的收件人邮箱");
return;
}
jmail::IMessagePtr pMessage("JMail.Message");
pMessage->From = (LPCTSTR)m_strSender;
pMessage->FromName = "yang";
pMessage->AddRecipient((LPCTSTR)m_strAddres, "", "");
pMessage->Priority = 3;
pMessage->Charset = "GB2312";
pMessage->Subject = (LPCTSTR)m_strMailTitle;
pMessage->Body = (LPCTSTR)m_strContent;
if(m_strFile != "")
{
pMessage->AddAttachment((LPCTSTR)m_strFile, VARIANT_TRUE, "image/gif");
}
pMessage->Send((LPCTSTR)m_strMailServer, VARIANT_FALSE);
pMessage.Release();
AfxMessageBox("发送成功!");
引用回帖,就把我问的问题回答完整可以吗?对不起,还是不懂你的意思,不是要发邮件的代码吗
刚试了一下QQ邮箱,又不行啦,泪啊
这时发送邮件给QQ邮箱时出错的提示发送邮件给sina邮箱出错的提示
发送邮件给163邮箱时,出现local user is not allowed