使用CSMTPConnection类(支持SMTP协议的免费MFC类)通过SMTP服务器发送电子邮件. [英] Sending e-mail through SMTP server using CSMTPConnection class, a freeware MFC class to support the SMTP protocol.

查看:150
本文介绍了使用CSMTPConnection类(支持SMTP协议的免费MFC类)通过SMTP服务器发送电子邮件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此类通过SMTP服务器发送电子邮件.我要附加一些扩展名为".ecg"和".evr"的应用程序文件.仅当发送到我们组织的电子邮件ID时,我才能发送带有附件的邮件,但是在收到的邮件中,附件的扩展名更改为".txt".

当邮件发送到其他电子邮件ID(例如hotmail或yahoo或其他任何电子邮件)时,我在CSMTPConnection的SendMessage命令上收到错误代码22".错误代码的描述为设备无法识别该命令. ERROR_BAD_COMMAND".

如果有人可以解决此问题,请帮助我.

I am using this class to send an e-mail through SMTP server. I am attaching some of my application files with extension ‘.ecg’ & ‘.evr’. I am able to send this mail with attachments when sent to our organization’s e-mail ids only, but then in received mail the extension of the attached file changes to ‘.txt’.

I am getting ‘Error Code 22’ on CSMTPConnection’s SendMessage command when the mail is sent to other email ids like hotmail or yahoo or any other. The error code has description ‘The device does not recognize the command. ERROR_BAD_COMMAND’.

If anybody has any solution to this problem please help me.

推荐答案

您应该在文章底部的论坛中提问.该文章的作者可能会对此进行回复.

-Saurabh
You should ask this question in the forum at the bottom of the article itself. There is a chance that author of article will reply to it.

-Saurabh


这篇关于使用CSMTPConnection类(支持SMTP协议的免费MFC类)通过SMTP服务器发送电子邮件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆