Forums

Custom Email [GH] action

jack19 22 Jan, 2015
Hi,
I am trying to use custom Email [GH] action, but I can not understand how I can enter in the setup email for the To field (required), the value from the email database.
Best Regards.
Gioacchino
GreyHead 23 Jan, 2015
Hi Gioacchino,

Sorry but I don't understand your question :-( What is "the value from the email database"?

Bob
jack19 23 Jan, 2015
Hi Bob,
In the database I have a list of users where I saved name and email address.
Through a form that I fill out online also choose from a drop-down menu (with a query), the name and fill out the form (using a different procedure TDPF) I create a PDF doing a merge with the data from the form and a PDF template.
In the end I have to send the PDF as attachment to the email from the DB and I want to include in the TO (required) field.
How do I complete it.
Best Regards
GreyHead 24 Jan, 2015
Hi Gioacchino,

Please see this FAQ. There's a section near the end on attaching the PDF to an email in CFv4.

Bob
jack19 26 Jan, 2015
Hi Bob,
I thank you for the answer.
Actually all part of creating the PDF and saving on the server is already developed. The saved file has the same name to avoid having too many files and taking up space on the server.
I have to do is attach (and not post a link) to the email, but I would need to be able to dynamically insert the emal address.
Is possible to do this with Email [GH] or with the ChronoForms PDF action?
Best Regards.
Gioacchino
GreyHead 26 Jan, 2015
Hi Gioacchino,,

From the FAQ:
Attach to an email
You can then use the name of this value, cf_pdf_file is the default, in an Email action after the HTML to PDF action.

Bob
This topic is locked and no more replies can be posted.