smtp.gif (295 bytes)CSMTPConnection v2.15

Welcome to CSMTPConnection, a freeware MFC class to support the SMTP protocol. SMTP for those not familiar with all the internet protocols is the protocol used to send internet email.

For detailed information about the Simple Mail Transfer Protocol you should read RFC 821,

Other documents that these classes refer to are RFC 2045 (which defines how MIME attachments are to be handled in a standard SMTP message) and RFC 822 (which defines the way standard headers which SMTP uses). You might also want to check out RFC 2110 which covers MHTML (aka HTML Email).

You can find numerous Web Servers which carry these documents by going to www.yahoo.com and look for RFC and 821, 822, 1321, 2045, 2104 and 2195.

 

Please note that portions of the code is provided by RSA security. Please see md5.cpp for more details on this.

 

Features
Copyright
Usage
History
API Reference
Planned Enhancements
Contacting the Author

 

 

 

Features

 

 

 

Copyright

You are allowed to include the source code in any product (commercial, shareware, freeware or otherwise) when your product is released in binary form. You are allowed to modify the source code in any way you want except you cannot modify the copyright details at the top of each module. If you want to distribute source code with your application, then you are only allowed to distribute versions released by the author. This is to maintain a single distribution point for the source code. 

 

 

 

Usage

        CSMTPConnection smtp;
        smtp.Connect("mail.someisp.com");
        CSMTPMessage m;
        m.AddRecipient(CSMTPAddress("pjna@naughter.com"));
        m.m_From = CSMTPAddress("adeveloper@someisp.com");
        m.m_sSubject = "A Fellow developer!";
        m.AddTextBody("if you can read this then the CSMTPConnection code is working");
        smtp.SendMessage(m);

        To send your autoexec.bat as a file attachment to me you would use the following code:

        CSMTPConnection smtp;
        smtp.Connect("mail.yourisp.com");
        CSMTPMessage m;
        m.AddRecipient(CSMTPAddress("pjna@naughter.com"));
        m.m_From = CSMTPAddress("you@someisp.com");
        m.m_sSubject = "Here's my autoexec.bat file!";
        CSMTPBodyPart a;
        a.SetFilename("c:\\autoexec.bat");
        m.AddBodyPart(a);
        smtp.SendMessage(m);

 

 

 

History

V1.0 (26th May 1998)

V1.1 (17th June 1998)

V1.11 (18th June 1998)

V1.12 (27th June 1998)

V1.2 (11 August 1998)

V1.21 (12 September 1998)

V1.3 (18 January 1999)

V1.31 (22 February 1999)

V1.32 (25 March 1999)

V1.33 (14 May 1999)

V1.34 (10 September 1999)

V1.35 (5 October 1999)

V1.36 (16 February 2000)

V1.37 (19 March 2000)

V1.38 (26 March 2000)

V1.39 (28 March 2000)

V1.40 (7 May 2000)

V1.41 (20 June 2000)

V2.0 (21 June 2000)

V2.01 (10 July 2000)

V2.02 (30 July 2000)

V2.03 (5 September 2000)

V2.04 (28 December 2000)

V2.1 (14 May 2001)

V2.11 (17 June 2001)

V2.12 (25 June 2001)

V2.13 (1 July 2001)

V2.14 (15 July 2001)

V2.15 (13 August 2001)

 

 

 

PLANNED ENHANCEMENTS

 

 

 

CONTACTING THE AUTHOR

PJ Naughter
Email: pjna@naughter.com
Web: http://www.naughter.com
13 August 2001