DelphiFAQ Home Search:

Send email from Delphi

 

comments17 comments. Current rating: 5 stars (8 votes). Leave comments and/ or rate it.

It can be so easy to have your application pop up an email window.. assuming that a mail reader is installed (see below):

(Thanks to Kevin for improving the code with the body= parameter.)

uses
  ShellAPI;
	
begin
  ShellExecute(0,'open','mailto: peter@preview.org?subject=my subject&body=my message text',
               NIL, NIL, SW_SHOWNORMAL);
end

Comments:

You are on page 1 of 2, other pages: [1] 2
2005-11-30, 11:58:53
anonymous from United States  
rating
2006-03-28, 20:06:54
anonymous from United States  
rating
Good help
2006-03-31, 13:29:25
anonymous from Morocco  
j'ai l'honneur pour ecrire ce petite demande pour me postuler un poste dans votre etablissment .
jbilou ahmed
2006-05-14, 08:09:34
anonymous from United Kingdom  
rating
2006-05-28, 23:09:49
anonymous from India  
How i can send mails yahoo mail id etc through delphi program
2006-05-28, 23:11:35
hariram@efftronics.net from India  
how can i send mails for yahoo id through delphi program
2006-06-22, 03:47:44
Gilby from Hungary  
rating
That is what I looked for!
2006-09-26, 06:57:20
Shareè from South Africa  
rating
Thanks, short and sweet and very helpful!
2006-11-06, 05:38:41
RTS from Poland  
rating
That is what I looked for!
2007-02-27, 17:44:49
Shendrik from Israel  
rating
Thank you!!!
2007-05-08, 04:36:07
anonymous from India  
Exellent and gud help
thank you......
2007-06-02, 08:28:10
03jamiem@houston.renfrewshire.sch.uk from United Kingdom  
hello
2007-08-11, 10:12:45
anonymous from Iran  
in the name of god
very GOOD
Thank you!
2007-09-19, 08:21:02   (updated: 2007-09-19, 08:22:25)
anonymous from Kermanshah, Iran  
rating
Hi
tnx 4 your great helpful code
Be Fun!!!!

www.Delphi-Magic.com
2008-01-05, 04:54:59
anonymous from Iran  
that's very good

www.yeganehsoft.com
You are on page 1 of 2, other pages: [1] 2

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.