Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ QT
Hello,
I've got a strange problem.
 
I have an application,A, which is required to send a formatted message, and an address to an email client (e.g.Lotus Notes/Outook etc., preferably the former), and have the client mail that message, without any intervention (i.e.no one to press on send in the client). This must happen in the background.
 
The message I have, I have the address, I know how to pick a default email client.
 
How do I send the preformatted message and address (I'm guessing some MAIL:TO), and have the client send the message automatically?
 
The application is in C++ and Qt. I'll probably require some API of the client to be called. Do they expose these?
 
Thanks for your help.
Posted 23-Aug-12 21:50pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I would not go with a specific client unless you have plenty of control that this client will never change (something you should not want to tie to).
 
Take a look at this link[^] in a website from one of the members of CP (the article here is not as new as in his web site).
 
Here you will find some classes (look into the code, there are all the dependencies well explained) that will help you to send e-mails without even needing to install outlook or any other client in your machine.
 
The best of it is that the safe measures established by Outlook (asking for each message that an external app wants to send) are automatically gone, making this perfect for unattended sending e-mails.
 
Hope this helps you.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 5,130
1 DamithSL 4,237
2 Maciej Los 3,700
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,846


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 24 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100