PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → [7.5 and 8.0] File attach
[7.5 and 8.0] File attach
Started by Gerard van Woudenberg, Jun., 01 2004 2:51 PM - 6 replies
Posted on June, 01 2004 - 2:51 PM
Good afternoon programmers,
I' am using a simple shellexecute command to send an email. I have no problem with the following:
"mailto:jp@unitas.nl &cc=info@unitas.nl &bcc=marianne@unitas.nl"+...
"?subject=Subject : LST &body=Text: LST table of contents "
However whatever i do to use &attach=c:\test.txt in this line e.g.;
After &bcc or &body like
&attach=c:\test.txt or
"&attach="+c:\test.txt
It does not work. I think i need to pick up the file but do not know how.
?? maybe fopen __ Fread in var and the &attach=var
I do not know your comments are appriciated.
Kind regards
Gerard van Woudenberg


Our homebase
Posted on June, 01 2004 - 3:43 PM
Hi Gerard,
"mailto:jp@unitas.nl &cc=info@unitas.nl &bcc=marianne@unitas.nl"+...
"?subject=Subject : LST &body=Text: LST table of contents "
However whatever i do to use &attach=c:\test.txt in this line e.g.;
After &bcc or &body like
&attach=c:\test.txt or
"&attach="+c:\test.txt
It does not work. I think i need to pick up the file but do not know how.

The default 'Mailto' does not have the possibility to attach files. Maybe
Outlook does have some extra features? (&attachment="c:\test.txt") ?
(www.ianr.unl.edu/internet/mailto.html)
Peter
Posted on June, 01 2004 - 5:27 PM
Thanks Peter,
Nice link. Looks like that it is indeed not possible. If it is i will report back.
Regards
Gerard
Posted on June, 01 2004 - 8:55 PM
Hi Gerard,
WinDev has built-in commands for sending e-mails. An unlimited number of attachments can be sent and received with these e-mail-commands. Look for Email.attach in the e-mail structure. Works really fine. Finished a program with sending and receiving EDIFACT-files as attachments to e-mails today's morning - it's great! You are able to scan e-mails (EmailReadFirst(..) -> EmailReadNext(..)) on your mail-account, to delete e-mails (EmailDeleteMessage(..)) on the server though reading the attachments into the program. Everything's here and I have not seen any bugs! Cannot see the necessity to make your life difficult with mailto: ...
Best regards,
Guenter

Good afternoon programmers,
I' am using a simple shellexecute command to send an email. I have no problem with the following:
"mailto:jp@unitas.nl &cc=info@unitas.nl &bcc=marianne@unitas.nl"+...
"?subject=Subject : LST &body=Text: LST table of contents "
However whatever i do to use &attach=c:\test.txt in this line e.g.;
After &bcc or &body like
&attach=c:\test.txt or
"&attach="+c:\test.txt
It does not work. I think i need to pick up the file but do not know how.
?? maybe fopen __ Fread in var and the &attach=var
I do not know your comments are appriciated.
Kind regards
Gerard van Woudenberg
Posted on June, 02 2004 - 11:03 AM
Good morning Guenter,
Thanks for your awnser. The thing is that I am trying to send an email from a user without having to set a series of parameters like user, passwords etc. I just want to able, to send an email from a simple application. As far as I can see this is not possible with your suggestion, please let me know if I am wrong.
Kind regards
Gerard van Woudenberg



Our homebase
Posted on June, 02 2004 - 9:48 PM
I think that you have to use "OLE" , just check the windev example "WD7 OUTLOOK"
Gerard van Woudenberg <gerard@unitas.nl> wrote:

Good morning Guenter,
Thanks for your awnser. The thing is that I am trying to send an email from

a user without
>having to set a series of parameters like user, passwords etc. I just want
to able,
to send an email from a simple application. As far as I can see this is

not possible
with your suggestion, please let me know if I am wrong.
Kind regards
Gerard van Woudenberg



Our homebase






Posted on June, 08 2004 - 12:56 PM
Good afternoon programmers,
I' am using a simple shellexecute command to send an email. I have no problem with the following:
"mailto:jp@unitas.nl &cc=info@unitas.nl &bcc=marianne@unitas.nl"+...
"?subject=Subject : LST &body=Text: LST table of contents "
However whatever i do to use &attach=c:\test.txt in this line e.g.;
After &bcc or &body like
&attach=c:\test.txt or
"&attach="+c:\test.txt
It does not work. I think i need to pick up the file but do not know how.
?? maybe fopen __ Fread in var and the &attach=var
I do not know your comments are appriciated.
Kind regards
Gerard van Woudenberg