Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900