Click here to Skip to main content
13,193,468 members (24,946 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 ( 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 20:50pm

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171018.2 | Last Updated 24 Aug 2012
Copyright © CodeProject, 1999-2017
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