Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

Opening default email application with attachment in PowerBuilder

$
0
0

Hi ,

 

I want to open the default email application (could be Outlook ,Thunderbird ...etc ) and pass email content to it ( recipient , subject , body , attachment )

Then user can review this email and format it then sent it .

 

Iam able to achieve using the below script :

 

ls_syntax = "mailto:" + ls_emailid + "?subject=" + ls_subject +"&body=" + ls_body

ls_syntax = ls_syntax + "&attachment=" + ls_attachment_path +""

ls_syntax =  "rundll32 url.dll,FileProtocolHandler " + ls_syntax 

Run(ls_syntax)

 

However I am not able to pass attachments using the mentioned script above ,

When I googled it , I found that (somehow ) the attachments is not supported using the above command ,

 

But I am wondering , How does WINRAR do it ?!

If you have WinRar installed , you can right click on any file and choose "compress & email" , it does exactly what Iam not able to achieve .

 

Iam using PowerBuilder 11.5 .

Could I have missed something here ?

 

Regards ,

 

Ahmed .


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>