I have no issue styling the vouchers in HTML  (this is already done in a view) 
my issue  is how to capture that view and send it via email either as message 
or attachment.

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
villas
Sent: 27 January 2020 13:26
To: web2py-users
Subject: [web2py] Re: Saving a view as an file/image

 

Generating PDFs can be a challenge, so it would be much easier to style the 
vouchers in HTML.

 

Re: QRcodes.  You can even generate QRcodes using Markmin, or, just use the 
Google Charts API directly. Search web for other solutions.

 

 


On Sunday, 26 January 2020 14:25:47 UTC, John Bannister wrote:

Hi All,

 

I have hit a bit of a stumbling block and would like to know if anyone else has 
come across this and how to resolve it.

 

Situation is as follows:-

 

I am generating tickets/coupons for users once they have entered all the 
appropriate info which I am doing via normal controller/view using html for 
styling. Coupon consists of 2 images plus some text (nothing really fancy at 
all).

 

Everything looks okay and as it should in the view with all the correct 
information etc.

 

I now what to email the coupon to the user. This is where I am a bit stumped.

 

I am assuming that I will need to save the rendered view as an image/file/.pdf 
if I want the styling, logos, qrcodes etc to be in the email that I will send 
as well as for all the formatting to be as per the view.

 

Is there any easy way or any way at all to do this?

 

In the controller I can use the response.render(view, args) but still cant see 
how to create a pdf file from the actual view before sending the email.

Hopefilly I ma missing something simple  

 

Thanks in advance 

 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/020c2eb9-f2b9-494e-901d-8990853b79d7%40googlegroups.com
 
<https://groups.google.com/d/msgid/web2py/020c2eb9-f2b9-494e-901d-8990853b79d7%40googlegroups.com?utm_medium=email&utm_source=footer>
 .

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/00aa01d5d5b8%2435a34950%24a0e9dbf0%24%40gmail.com.

Reply via email to