Email Component

vupdx
vupdx used Ask the Experts™
on
Hello All,

I'm looking for a way to start my default e-mail client (Outlook) from a Delphi3 application and be able to fill in the To: and Subject: fields from the application.  Is there a component out there that I could use?  Thanks in advance.

vupdx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Developer
Commented:
Hello

  you can do that in simple way, using the ShellExecute

uses
  ShellApi;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute (Handle, nil, 'mailto:someone@anymail.com&cc=anotherone@anymail.com&subject=hello&body=Hi this is a test',
   nil, nil, SW_SHOWNORMAL);
end;

or using com automation
http://www.djpate.freeserve.co.uk/AutoOutl.htm

Author

Commented:
Thank you.  It worked out perfectly.

vupdx

Commented:
if you using DELPHI 5. To send mail you can use a VCL in page FastNet, it's NMSMTP. Help and example can you get from Delphi Help, follows this steps:
 Help|Index|NMsmtp|TNMSMTP|Methods|SendMail|Example

Author

Commented:
Thanks irvann.

vupdx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial