Click here to Skip to main content
11,790,904 members (66,653 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VC7.1
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.
Posted 23-Apr-10 20:13pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 410
1 ppolymorphe 385
2 Richard MacCutchan 118
3 Jochen Arndt 80
4 Maciej Los 70
0 OriginalGriff 1,329
1 Maciej Los 835
2 ppolymorphe 780
3 KrunalRohit 686
4 CPallini 661

Advertise | Privacy | Mobile
Web04 | 2.8.1509028.1 | Last Updated 24 Apr 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100