How to create a PDF and send it using an Email resource

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Matt

How to create a PDF and send it using an Email resource

#1

Postby Matt » Wed Jan 13, 2010 9:55 am

I am new at using ebase, I have created a form with an Email resource mapped to it. I am trying to work out how I can get the completed form to be sent as a PDF attach in the e-mail. Can this be done and if so how.
0 x

AJDulk
Ebase User
Posts: 94
Joined: Fri Sep 14, 2007 12:18 pm
Location: The Netherlands
Contact:

Re: How to create a PDF and send it using an Email resource

#2

Postby AJDulk » Wed Jan 13, 2010 11:19 am

First: Create the Print Design (see http://www.ebaseftp.com/website/340doc/ ... signer.htm).
Second: Print the PDF (see http://www.ebaseftp.com/website/340doc/ ... c176316845).
Third: Send the Email with the created PDF (see http://www.ebaseftp.com/website/340doc/ ... c176316851).
0 x

Matt

#3

Postby Matt » Wed Jan 13, 2010 12:25 pm

My form is called HFRS_FIRE_FIT1 and my E-mail resourse is called HFRS_FIRE_FIT

So I made a script:
PDFPrint save ;

and another script to send the e-mail which is
sendmail HFRS_FIRE_FIT with attachments HFRS_FIRE_FIT1 ;

but I get:

Script HFRS_PDF - Invalid Field HFRS_FIRE_FITP in command>sendmail HFRS_FIRE_FIT with attachments HFRS_FIRE_FITP *

Can you help
0 x

AJDulk
Ebase User
Posts: 94
Joined: Fri Sep 14, 2007 12:18 pm
Location: The Netherlands
Contact:

Re: How to create a PDF and send it using an Email resource

#4

Postby AJDulk » Wed Jan 13, 2010 2:22 pm

The script should be something along the lines of:

Code: Select all

pdfPrint save;
sendmail HFRS_FIRE_FIT with attachments $FILE_NAME;
Normally you would save the $FILE_NAME into a variable and use this to send the email.
0 x


Who is online

Users browsing this forum: No registered users and 136 guests