?
Solved

email sending

Posted on 2004-10-12
4
Medium Priority
?
166 Views
Last Modified: 2013-11-20
Hi experts.
I should send email from my  app. Anyone got idea, link, advice . . .
Regard
Marko
0
Comment
Question by:elchuma
4 Comments
 
LVL 45

Expert Comment

by:AndyAinscow
ID: 12287065
Have a look here
 http://www.codeproject.com/internet/csmtpconn.asp
this is an MFC class that you can use to send e-mails
0
 
LVL 86

Accepted Solution

by:
jkr earned 800 total points
ID: 12287251
Or, alternatively:  http://www.codeproject.com/internet/zsmtp.asp ("CFastSmtp - Fast and easy SMTP class...") - sending a mail can be as easy as

CFastSmtp mail;

if (mail.ConnectServer("SERVER")) {
   mail.SetSenderName("Sender's Name");
   mail.SetSenderEmail("senders@address.com");
   mail.SetSubject("CFastSmtp v1.1 Release");

   mail.AddRecipient("test@test.com");
   mail.AddCCRecipient("test@test.com");
   mail.AddBCCRecipient("test@test.com");

   mail.SetMessageBody("Here is another test of CFastSmtp SMTP class!");
   
   if (mail.GetConnectStatus()) {        
       printf(mail.Send() ? "Send was a success!" : "Send failed!");
       mail.Disconnect();                    
   }
}  
0
 
LVL 12

Expert Comment

by:OnegaZhang
ID: 12293723
0
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12295095
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question