how to attach a file with dcl_ActivateEmail ?

Started by stephan_35, November 06, 2009, 06:18:45 AM

Previous topic - Next topic

stephan_35

Hello !

After several try, i ask if it's possible to join a file (attach) with this ?

Here an example :

Code (autolisp) Select

(dcl_ActivateEmail
   "myemail@mydomain.fr"
   (strcat
     (strcat "subject=this is my test "  $something)
     "&body=so go on !
     " (VL-PRIN1-TO-STRING &hereisacode)
     )
   )


other way, working only with thunderbird  ::)

Code (autolisp) Select

(command "_shell"
 (strcat
  "\""
 "\"C:\\Program Files\\Mozilla Thunderbird\\thunderbird.exe\" -compose "
  "\"to='"
 $to
  "',subject='"
  $subject
 "',body='"
  "blablabla."
 "',attachment='file:///" $file "'\""
  "\""
 )



if anyone has any idea ....

Best regards
OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql

owenwengerd

I would guess that the only way is to encode the file in your own code for inclusion into the message body.  This would require something outside of AutoLISP for binary files.  If you're attaching plain text files, it should be pretty straightforward.