# Email using Thunderbird

Discussion in 'Delphi Programming' started by delphiy, Oct 31, 2015.

1. Offline

### delphiyDF Member

I have an applciation where i want to send a normal email with an attachment via thunderbird.
Using Outlook seems easy. I got that to work. Some of my clients use thunderbird. I like to get this working here as well.
I dont want to rely on the DEFAULT emailing program in windows. It does not always work. I found one solution but dont get it working at all. Compling error.
Code:
PHP:
  ShellExecute(Handle, 'path\to\thunderbird.exe',     '-compose "[email protected],attachment=''file:///c:/test.txt''",      nil, SW_SHOWNORMAL); 
Is there is simple way? The above code i cannot get working. I get an error. Incompatibe types integer and widestring.
If shellexcute does not work is there any other ideas?

Thanks