CalcBuilder Forum

Send email with exit layout (incl. results)

User moon_1422 2014-01-22 14:04:28

I would like to send out an email with pdf attachment.
The pdf attachment works ok, however I would like to have the full exit layout screen in this pdf.

Moonsoft support 2014-01-22 16:46:29

are you creating & sending this pdf attachment from the code? Then you will have something like:

$mail_content='Form mail content: ';

you can add to that variable any content needed, you can copy the whole exit layout (toggle editor) code and replace the ##result## expressions, with $result as you're working on php. If you have at your output

This is my result1:##result1## that is printed on screen

For the pdf you should set this at the code:

$mail_content='This is my result1:$result1 that is printed on screen';

Of course this line should be below the ones calculating your results.

Hope this helps, regards

Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!