Click here to Skip to main content
11,645,489 members (71,336 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 700
1 684
2 Sergey Alexandrovich Kryukov 473
3 CPallini 426
4 Afzaal Ahmad Zeeshan 418
0 OriginalGriff 1,065
1 Sergey Alexandrovich Kryukov 703
2 Afzaal Ahmad Zeeshan 702
3 DamithSL 681
4 CPallini 595

Advertise | Privacy | Mobile
Web04 | 2.8.150731.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