Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

sending email using VC++ 5

josefjosef Member Posts: 37
I am using VC++ 5 and would like to write a piece of code that sends a CString by email (no attachments).

I have searched the internet and cannot find any classes (free) that I can use. I have downloaded CSMTPConnectionMFC Class (http://www.naughter.com/smtp.html) but the demo application requires me to fill in the following details:

Sender:
Name
Address
Authentification Method

Server:
Host Name/ Address
Port No.

Misc:
Bind to (Any IP_Address or 213.48.80.63)
Encoding (Unicode etc)

I presume this class only works on a server as it asks for Port No. and host name. I would like to use email code as a standalone Win 32 application. My machine is not a server.

Any help would be appreciated

Rod

Comments

  • josefjosef Member Posts: 37
    Found out how to launch default email program.

    ShellExecute(NULL, "open", "mailto:address.co.uk",subject=Whatever", "", "", SW_SHOWNORMAL);


    This fills is the address and subject of the email but does not send it. How do i get it to send the email ?

    Rod
Sign In or Register to comment.