Solved

email sending

Posted on 2004-10-12
4
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 44

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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro to save highlighted rows as a separate file 5 46
Annoying "thing" blocks my view 4 133
Problem to open Excel file 15 226
Is there a simple front-end menu system. 9 122
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…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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