Solved

email sending

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

718 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