send email with a file

Author: urieli@gmail.com (Uriel)

hey i try to send email with cvs file. this is my code   activate "UPOPMail".SendMail("mat-ex2010cas", $lv_header_mail$,"%%$lv_text$","R:\Q_lesheavar\out_files\lamas\%%$lv_para$.cvs",0)   i got -13 error.   can you help?   thanks

5 Comments

  1. -13 is 'Attachment file(s) not reachable'

    Extensione file should perhaps be 'csv', not 'cvs' ?

    Regards


    Author: LG1949 (l_giuliante@shsistemi.it)
  2. If the R drive is a mapped drive, and you are running with a default server set in [services_exec] ensure that the upopmail is run locally.  i.e.  [services_exec] upopmail=upopmail *=$XXX:*   Otherwise I think upopmail runs on the server, from where the attachment is unreachable.  Iain


    Author: Iain Sharp (i.sharp@pcisystems.co.uk)
  3. Iain Sharp said If the R drive is a mapped drive, and you are running with a default server set in [services_exec] ensure that the upopmail is run locally. 

    Or if it is in fact on the same machine/server, but could be executing as a different user (eg usys/urouter user) who does not have the R drive mapped. BTW... Are you sure that "R:\Q_lesheavar\out_files\lamas\%%$lv_para$.cvs" exists? Because this contains a variable, you should confirm that it is resolving as expected. IE.... putmess "R:\Q_lesheavar\out_files\lamas\%%$lv_para$.cvs"


    Author: rkrite (rkrite@gmail.com)
  4. Give this a try....it should get you zeroed in on the exact issue. Sometimes it's network permissions and I've experienced some not so funny problems with upopmail in the past. Just threw this together....it should give you at least the picture of how to troubleshoot. selectcase $lfileexists(R:\Q_lesheavar\out_files\lamas\%%$lv_para$.cvs) case 1     lfilecopy "R:\Q_lesheavar\out_files\lamas\%%$lv_para$.cvs","c:\temp\%%$lv_para$.cvs"     if ($status = 0)         activate "UPOPMail".SendMail("mat-ex2010cas", $lv_header_mail$,"%%$lv_text$","c:\temp\%%$lv_para$.cvs",0)     else         message/info "File copy failed."     endif case 0     message/info "R:\Q_lesheavar\out_files\lamas\%%$lv_para$.cvs does not exist." endselectcase


    Author: adkinsl (adkins.larry@gmail.com)
  5. Hey guys, thank you for the thr help. i had a stupid mistake. i didnt put the full file's name Embarassed.    thank form Israel.   Uriel


    Author: Uriel (urieli@gmail.com)