Vpe.AddMailAttachment

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Vpe.AddMailAttachment

Postby simonlec » Thu Dec 18, 2008 8:44 pm

Hi everyone.
Is it possible to use Vpe.AddMailAttachment to attach a file from a server :?:

Example: My Vpe run on a server and I want to attach the file test.txt that saved on my server(not the client computer), on the current document for mailling.
Thank
simonlec
 
Posts: 32
Joined: Wed Jul 30, 2008 6:50 pm

Postby IDEAL Software Support » Fri Dec 19, 2008 12:16 pm

You can simply supply the path and file name of the file on the server to Vpe.AddMailAttachment. Make sure that Simple MAPI is installed on the server.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby simonlec » Fri Dec 19, 2008 4:07 pm

MAPI is installed on the server but when i run the vpe on the client computer, the email button doesn't work. :? Have a idea?
simonlec
 
Posts: 32
Joined: Wed Jul 30, 2008 6:50 pm

???

Postby simonlec » Fri Dec 19, 2008 4:13 pm

Something like:
VpeCtrl.AddMailAttachment("ftp:\\user:pass@mysite.com\a.pdf","");
OR
VpeCtrl.AddMailAttachment("http:\\www.mysite.com\a.pdf","");

Need some specific rights???
Thanks
simonlec
 
Posts: 32
Joined: Wed Jul 30, 2008 6:50 pm

Postby IDEAL Software Support » Mon Dec 22, 2008 1:07 pm

You should have said that you want to use an internet transfer protocol. HTTP or FTP protocols are not supported. I thought you are executing VPE on the server, or that the server is accessible via UNC.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby simonlec » Mon Jan 05, 2009 3:57 pm

That mean if my application run on the client computer, Vpe.AddMailAttachment can't work to attach a file from the server?
Happy new year every one :D
simonlec
 
Posts: 32
Joined: Wed Jul 30, 2008 6:50 pm

Postby IDEAL Software Support » Tue Jan 06, 2009 3:37 pm

VPE is not an HTTP or FTP download client. Why don't you just put a link to the file into your mail text?
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 4 guests