I currently have my email in web2py setup in a standard way:
mail = auth.settings.mailer
mail.settings.server = 'smtp.example.com:25'
mail.settings.sender = '[email protected]'
mail.settings.login = 'username:password'
If I was to manually use mail.send() for this email, it would be something like
the code below:
mail.send('[email protected]',
'Message subject',
'<html>html body</html>',
headers= {'header1':'abc'}
)
I would like to set an email header for the request_reset_password email
(from auth()), but since I don't explicitly use mail.send() I'm not sure
how I would go about adding a header for this email.
--
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].
For more options, visit https://groups.google.com/d/optout.