hi
For send a mail I do that:
szText szHomepage,"mailto:Francois.Menciere@wanadoo.fr",0
invoke ShellExecute,0,0,ADDR szHomepage,0,0,0

it's ok
but before to send it, I want to do text in the mail
How to make it?
merci
Posted on 2002-07-10 02:29:41 by franlou
Use an URL of the following form:
mailto:(Address)?body=(Text)

You can also specify a default subject with the subject parameter

Posted on 2002-07-10 02:49:03 by Sephiroth3
thanks
I modied the code like this to put the text in 'body':

szText szHomepage, "mailto:Francois.Menciere@wanadoo.fr ?body=Num?ro de "
;szText Subject,"edit:Enregistrement"
szText Blancp," : "
invoke lstrcpy,ADDR buffer,ADDR szHomepage
;invoke lstrcat,ADDR buffer,ADDR Subject
invoke lstrcat,ADDR buffer,ADDR AppName;="TOTO"

invoke lstrcat,ADDR buffer,ADDR Blancp
invoke lstrcat,ADDR buffer,ADDR CrLf ;CrLf= 0Dh and 0Ah

invoke lstrcat,ADDR buffer,ADDR Number;"12345678"
invoke ShellExecute,0,0,ADDR buffer,0,0,0

but :
szText Subject,"edit:Enregistrement"
...
invoke lstrcat,ADDR buffer,ADDR Subject

don't work

and add a carriage return don't work also
ex I wish that text appears so:

"Num?ro de TOTO :
12345678"

and I got "Num?ro de TOTO : 12345678" on the same line

thanks
Posted on 2002-07-11 05:12:43 by franlou
You can use 13d,10d for a CRLF. You must urlencode it.
Posted on 2002-07-11 06:18:22 by bazik
Hi,

there are atleast two other possibilities.

First: using the MAPI; there is an assembly example in the file pcmail10.zip available via search on web

Second: sending the entire email directly to an SMTP server. This is easy but I don't know of a good way to get the preferred SMTP server on users machine.
The solution is to send the mail to a "public" smtp server. Search the web for s_mail.zip for an assembly example.

If you cant find the files mail me.

Bye Miracle
Posted on 2002-07-11 06:22:09 by miracle