Board index » delphi » Outlook + Internet Simple Question I'm sure?

Outlook + Internet Simple Question I'm sure?

How do I create a new e-mail message from Delphi ?

What I want is for users of my application to click on
an e-mail address, and the Outlook new mail dialog appears
with the address contained and also possibly a subject line.

The other question is very similar i.e. I've got an edit box
with an internet web site address, and again I'd like the users
to be able to click on this and it would open IE and goto that
particular site.

I've tried Mailitem but each time I run the program I get an
error EOleSysError Class not registered but it doesn't tell me
what class I need to register.

Thanks

Elfyn

 

Re:Outlook + Internet Simple Question I'm sure?


<<Elfyn Jones:
I've tried Mailitem but each time I run the program I get
an error EOleSysError Class not registered but it doesn't
tell me what class I need to register.

Quote

It would be easier for us to guess what's happening if you
gave some code. But there's an example on my site that
should help:
http://www.djpate.freeserve.co.uk/Automation.htm

--
Deborah Pate (TeamB) http://delphi-jedi.org

  Use Borland servers; TeamB don't see posts via ISPs
  http://www.borland.com/newsgroups/genl_faqs.html

Re:Outlook + Internet Simple Question I'm sure?


It will be a lot easier for you not to use OLE intefaces for these tasks.

Quote
> How do I create a new e-mail message from Delphi ?

Uses ShellApi;

shellexecute(handle,'open','mailto:valexand...@hotmail.com?subject=Hello&Bod
y=I''ll be back','','',sw_normal);

For opening the website you use the same fuction:

shellexecute(handle,'open','http://scorpius.spaceports.com/~gangster/index.h
tml','','',sw_normal);

Regards!
--
Vladimir Alexandrov
<valexand...@hotmail.com>
ICQ # 86729605

Other Threads