Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sending emails/mailto

48 views
Skip to first unread message

alkots

unread,
Feb 23, 2005, 3:43:04 PM2/23/05
to
VFP6 SP5 WINDOWS ALL

I'm using mailto to send emails, and I need put a txt/asc file as body of
email.

Is it possible ??

Alberto

Mike Gagnon

unread,
Feb 23, 2005, 4:21:59 PM2/23/05
to
No, not with Outlook Express

"alkots" <alk...@discussions.microsoft.com> wrote in message
news:057B8359-F5BE-43E8...@microsoft.com...

Rolf Lystad

unread,
Feb 23, 2005, 4:50:13 PM2/23/05
to

"alkots" <alk...@discussions.microsoft.com> skrev i melding
news:057B8359-F5BE-43E8...@microsoft.com...

> VFP6 SP5 WINDOWS ALL
>
> I'm using mailto to send emails, and I need put a txt/asc file as body of
> email.


Local m.string,m.mail,m.subj,m.file
m.mail = "ro...@invalid.com"
m.subj = "testing"
m.file = "d:\test.txt"
m.string = "mailto:" + ;
m.Mail + ;
"?subject=" + Alltrim(m.subj) + ;
"&body=" + Filetostr(m.file)

Declare Integer ShellExecute In "Shell32.dll" ;
INTEGER HWnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd

=ShellExecute(0, "Open" , m.string , "" , "" , 0 )

alkots

unread,
Feb 28, 2005, 9:19:07 AM2/28/05
to
Hi Rolf

It almost worked

but, it doesn't respect carriage return

Everything is worte in a long line

Any suggestion ?

Alberto


"Rolf Lystad" escreveu:

Leonid

unread,
Mar 2, 2005, 4:59:33 AM3/2/05
to
Local m.string,m.mail,m.subj,m.file
m.mail = "ro...@invalid.com"
m.subj = "testing"
m.file = "d:\test.txt"
m.string = "mailto:" + ;
m.Mail + ;
"?subject=" + Alltrim(m.subj) + ;
"&body=" + strtran(strtran(Filetostr(m.file),chr(13),"%0D"),chr(10),"%0A")

Declare Integer ShellExecute In "Shell32.dll" ;
INTEGER HWnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd

=ShellExecute(0, "Open" , m.string , "" , "" , 0 )


Leonid


"alkots" <alk...@discussions.microsoft.com> wrote in message

news:2D81FEE4-305E-4DAD...@microsoft.com...

alkots

unread,
Mar 7, 2005, 9:47:06 AM3/7/05
to
We are almost there:

Now, the problem is, outlook express body is in a unformatted style

I can format it manually, but I want it already formatted

Alberto

Bernhard Sander

unread,
Mar 7, 2005, 4:03:21 PM3/7/05
to
Hi Alberto

> We are almost there:
>
> Now, the problem is, outlook express body is in a unformatted style
>
> I can format it manually, but I want it already formatted

This is quite easy. Just put the necessary html tags into the txt file to where
you want the formatting.

Regards
Bernhard Sander

ivan...@gmail.com

unread,
Aug 15, 2014, 12:58:08 PM8/15/14
to
Me parece excelente opcion, pero como se añade un archivo adjunto
0 new messages