Send email using default client from delphi - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Send email using default client from delphi

How do I start sending an email from my delphi program using the user's default email client?

If I use "explorer mailto:[email protected]" this happens, but an explorer window stays open.

Comments

  • PerranPerran Posts: 241Member
    : How do I start sending an email from my delphi program using the user's default email client?
    :
    : If I use "explorer mailto:[email protected]" this happens, but an explorer window stays open.
    :
    I've not played with IE much, but does it expose a COM interface? If it does, you can simply close it using its own method. Otherwise, you're gonna be stuck having to determine what their client is and trying to use that. Some of them, specifically Outlook Express are notoriously not automatable [if that's a word.] If you can safely assume that they will have Outlook running, that can be automated. It's a big pile of MAPI folders. It's not as easy to automate as Word or Excel, but can be done. I have some sample code on my Windoze machine at home if you're interested.
Sign In or Register to comment.