Re: template via email

2008-07-01 Thread James Bennett

On Tue, Jul 1, 2008 at 8:37 PM, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
> Look at the render_to_string() method for converting templates to
> strings:
> http://www.djangoproject.com/documentation/templates_python/#the-render-to-string-shortcut

And if you end up using a template to generate the subject of the
email as well (not an uncommon thing), remember that you **must**
condense the subject to a single line of text.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: template via email

2008-07-01 Thread Malcolm Tredinnick


On Tue, 2008-07-01 at 18:25 -0700, Bobby Roberts wrote:
> hola -
> 
> I'm just about through with my first Django project.  This has been a
> wonderful experience and I thank you for helping me learn so quickly.
> 
> the last part of my application should send and email and I'm
> wondering if it's possible to somehow use a template as the html in my
> email receipt.

Look at the render_to_string() method for converting templates to
strings:
http://www.djangoproject.com/documentation/templates_python/#the-render-to-string-shortcut

Regards,
Malcolm



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: template via email

2008-07-01 Thread Juanjo Conti

Of course. Create a mail template, compile it and sendmail the result.

Juanjo
-- 
mi blog: http://www.juanjoconti.com.ar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



template via email

2008-07-01 Thread Bobby Roberts

hola -

I'm just about through with my first Django project.  This has been a
wonderful experience and I thank you for helping me learn so quickly.

the last part of my application should send and email and I'm
wondering if it's possible to somehow use a template as the html in my
email receipt.


BR
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---