Hello,
I need to create a prog for my job that would ask a few informations for email creation (recipients, object, email body and attachment) but I need to display it in my email client (should be Outlook 2003) before sending it.
I didn't find this kind of information in the help file. I use Purebasic 4.30.
Thanks in advance for your help.
Pierre
Newby prob. : how can I display an email before sending it ?
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
You can do like this:
Not sure if this is exactly what you want, but it should be better than nothing. More information here btw:
http://www.ianr.unl.edu/internet/mailto.html or just Google mailto for help.
Code: Select all
RunProgram("mailto:email@domain.com?subject=Title&body=Hello world")http://www.ianr.unl.edu/internet/mailto.html or just Google mailto for help.
I like logic, hence I dislike humans but love computers.
-
superadnim
- Enthusiast

- Posts: 480
- Joined: Thu Jul 27, 2006 4:06 am
You could try and see which file formats does outlook read as email files and then write your email in a temporary file, then RunProgram() if the extension is correctly associated to outlook, you'll see it open in outlook.
It's a clean solution, otherwise you might have to use an interface or something nasty like that. I do hate temps, but many programs use them. You have to think whether it's worth spending 3 days working on a routine that will open your email in outlook or whether that time could be used for something a little bit more productive.
It's a clean solution, otherwise you might have to use an interface or something nasty like that. I do hate temps, but many programs use them. You have to think whether it's worth spending 3 days working on a routine that will open your email in outlook or whether that time could be used for something a little bit more productive.
