f



mail to attachment

I try to use outlook to send email with attachment
but this doesnt work. Attachment is not set.
Any ideas ?
TIA

Yves

ShellExecute( oDW:Handle() , PSZ (_CAST, "Open") ,;
   PSZ ( _CAST , "mailto:" + cBal  + ;
   "?subject=" + cObjet +  ;
   "&body=" + cBody + "&attachment=" + cAttachement ) , ;
   NULL_PSZ , NULL_PSZ ,;
   ShowNormal )

cAttachement := '"' + 'C:\rep\myfile.html' + '"'
or
cAttachement :='C:\rep\myfile.html'


0
yves
1/2/2005 11:56:01 PM
comp.clipper.visual-objects 12618 articles. 2 followers. Post Follow

4 Replies
433 Views

Similar Articles

[PageSpeed] 45

You can use the MAPI variant...
Look at www.marti.nl/cavo
Grtz, Marc

"yves" <yves.martinotXX@a2ifXX.com> schreef in bericht 
news:41d83c69$0$2735$8fcfb975@news.wanadoo.fr...
>I try to use outlook to send email with attachment
> but this doesnt work. Attachment is not set.
> Any ideas ?
> TIA
>
> Yves
>
> ShellExecute( oDW:Handle() , PSZ (_CAST, "Open") ,;
>   PSZ ( _CAST , "mailto:" + cBal  + ;
>   "?subject=" + cObjet +  ;
>   "&body=" + cBody + "&attachment=" + cAttachement ) , ;
>   NULL_PSZ , NULL_PSZ ,;
>   ShowNormal )
>
> cAttachement := '"' + 'C:\rep\myfile.html' + '"'
> or
> cAttachement :='C:\rep\myfile.html'
>
> 


0
Marc
1/2/2005 7:03:58 PM
You sure ?
In mapi i dont see it is using outlook
it seems send message directly.

Yves

"Marc Verkade [Marti IT]" <marc@martiXYZNOSPAMZYX.nl> a �crit dans le
message de news:41d84563$0$212$58c7af7e@news.kabelfoon.nl...
> You can use the MAPI variant...
> Look at www.marti.nl/cavo
> Grtz, Marc
>
> "yves" <yves.martinotXX@a2ifXX.com> schreef in bericht
> news:41d83c69$0$2735$8fcfb975@news.wanadoo.fr...
> >I try to use outlook to send email with attachment
> > but this doesnt work. Attachment is not set.
> > Any ideas ?
> > TIA
> >
> > Yves
> >
> > ShellExecute( oDW:Handle() , PSZ (_CAST, "Open") ,;
> >   PSZ ( _CAST , "mailto:" + cBal  + ;
> >   "?subject=" + cObjet +  ;
> >   "&body=" + cBody + "&attachment=" + cAttachement ) , ;
> >   NULL_PSZ , NULL_PSZ ,;
> >   ShowNormal )
> >
> > cAttachement := '"' + 'C:\rep\myfile.html' + '"'
> > or
> > cAttachement :='C:\rep\myfile.html'
> >
> >
>
>


0
yves
1/2/2005 11:38:01 PM
Hai Yves,
Mapi will send it to outlook if you Windows is told to...
It just says to Windows... Hey.. Send an email and use your default 
mail-client.
It is the about the same thing you are doing with your ShellExecute.
Grtz, Marc





"yves" <yves.martinotXX@a2ifXX.com> schreef in bericht 
news:41d84d2e$0$2750$8fcfb975@news.wanadoo.fr...
> You sure ?
> In mapi i dont see it is using outlook
> it seems send message directly.
>
> Yves
>
> "Marc Verkade [Marti IT]" <marc@martiXYZNOSPAMZYX.nl> a �crit dans le
> message de news:41d84563$0$212$58c7af7e@news.kabelfoon.nl...
>> You can use the MAPI variant...
>> Look at www.marti.nl/cavo
>> Grtz, Marc
>>
>> "yves" <yves.martinotXX@a2ifXX.com> schreef in bericht
>> news:41d83c69$0$2735$8fcfb975@news.wanadoo.fr...
>> >I try to use outlook to send email with attachment
>> > but this doesnt work. Attachment is not set.
>> > Any ideas ?
>> > TIA
>> >
>> > Yves
>> >
>> > ShellExecute( oDW:Handle() , PSZ (_CAST, "Open") ,;
>> >   PSZ ( _CAST , "mailto:" + cBal  + ;
>> >   "?subject=" + cObjet +  ;
>> >   "&body=" + cBody + "&attachment=" + cAttachement ) , ;
>> >   NULL_PSZ , NULL_PSZ ,;
>> >   ShowNormal )
>> >
>> > cAttachement := '"' + 'C:\rep\myfile.html' + '"'
>> > or
>> > cAttachement :='C:\rep\myfile.html'
>> >
>> >
>>
>>
>
> 


0
Marc
1/3/2005 8:36:24 AM
Thanks it does

1) Why shellexecute doesnt ?

2)
nResult := DWORD( _CAST , PCALL( sMAPI.pSendMail , lhSession ,   ulUIParam ,
lpMessage ,   flFlags ,   ulReserved ) )
When user aborts  (message not send or window closed) it returns 0 instead
of 1. What is wrong ?
May it's the normal behaviour ?

TIA

Yves


"Marc Verkade [Marti IT]" <marc@martiXYZNOSPAMZYX.nl> a �crit dans le
message de news:41d903cc$0$745$58c7af7e@news.kabelfoon.nl...
> Hai Yves,
> Mapi will send it to outlook if you Windows is told to...
> It just says to Windows... Hey.. Send an email and use your default
> mail-client.
> It is the about the same thing you are doing with your ShellExecute.
> Grtz, Marc
>
>
>
>
>
> "yves" <yves.martinotXX@a2ifXX.com> schreef in bericht
> news:41d84d2e$0$2750$8fcfb975@news.wanadoo.fr...
> > You sure ?
> > In mapi i dont see it is using outlook
> > it seems send message directly.
> >
> > Yves
> >
> > "Marc Verkade [Marti IT]" <marc@martiXYZNOSPAMZYX.nl> a �crit dans le
> > message de news:41d84563$0$212$58c7af7e@news.kabelfoon.nl...
> >> You can use the MAPI variant...
> >> Look at www.marti.nl/cavo
> >> Grtz, Marc
> >>
> >> "yves" <yves.martinotXX@a2ifXX.com> schreef in bericht
> >> news:41d83c69$0$2735$8fcfb975@news.wanadoo.fr...
> >> >I try to use outlook to send email with attachment
> >> > but this doesnt work. Attachment is not set.
> >> > Any ideas ?
> >> > TIA
> >> >
> >> > Yves
> >> >
> >> > ShellExecute( oDW:Handle() , PSZ (_CAST, "Open") ,;
> >> >   PSZ ( _CAST , "mailto:" + cBal  + ;
> >> >   "?subject=" + cObjet +  ;
> >> >   "&body=" + cBody + "&attachment=" + cAttachement ) , ;
> >> >   NULL_PSZ , NULL_PSZ ,;
> >> >   ShowNormal )
> >> >
> >> > cAttachement := '"' + 'C:\rep\myfile.html' + '"'
> >> > or
> >> > cAttachement :='C:\rep\myfile.html'
> >> >
> >> >
> >>
> >>
> >
> >
>
>


0
yves
1/13/2005 9:48:56 PM
Reply: