Solved

email sending

Posted on 2004-10-12
4
149 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 44

Expert Comment

by:AndyAinscow
Comment Utility
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 200 total points
Comment Utility
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
Comment Utility
0
 
LVL 6

Expert Comment

by:Amritpal Singh
Comment Utility
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now