使用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