PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [7.5 and 8.0] File attach
[7.5 and 8.0] File attach
Iniciado por Gerard van Woudenberg, 01,jun. 2004 14:51 - 6 respuestas
Publicado el 01,junio 2004 - 14:51
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
Publicado el 01,junio 2004 - 15:43
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
Publicado el 01,junio 2004 - 17:27
Thanks Peter,
Nice link. Looks like that it is indeed not possible. If it is i will report back.
Regards
Gerard
Publicado el 01,junio 2004 - 20:55
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
Publicado el 02,junio 2004 - 11:03
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
Publicado el 02,junio 2004 - 21:48
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






Publicado el 08,junio 2004 - 12:56
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