Thanks. Can you be more explicit? My problem here is my limited 
understanding of class, instance and method arguments. Not web2py:

If I use my own mailer, I can use mailer.settings to set SMTP server info. 
But how do I customize send() arg - headers - for registration and 
reset_pwd email?

I use Mandrill email service. They can send template-based email by passing 
template and merge tag info in the send() headers argument. However, the 
send() call in Auth() only uses "to", "subject", "message", no 
auth.messages.verify_email_headers or reset_pwd_email_headers etc.

I assume I should set a send() argument headers value when I create my 
Mail() instance. So when Auth() calls send(), it will use the value. But I 
don't know how to do this ...

Any hints or guide for readings is appreciated. Thanks!

--Yi 


On Friday, December 6, 2013 7:50:53 AM UTC-8, Massimo Di Pierro wrote:
>
> Look into gluon/tools.py there is a
>
> class Mail:def send(
>         self,
>         to,
>         subject = '[no subject]',
>         message = '[no message]',
>         attachments=None,
>         cc=None,
>         bcc=None,
>         reply_to=None,
>         sender=None,
>         encoding='utf-8',
>         raw=False,
>         headers={}
>     ): ....
>
> You can mail your own mail class and set:
>
> auth.settings.mailer = YourMail()
>     
>
> On Friday, 6 December 2013 07:25:38 UTC-6, Relsi Maron wrote:
>>
>> Hi, 
>>
>> I'm using boto to send my emails through Amazon SES, like this: 
>>
>> http://www.web2pyslices.com/slice/show/1448/amazon-web-services-simple-email-service-using-boto
>>
>> All email of the app is ok, are send by my function, but the verify 
>> register and reset password email already are sent automatically, how I can 
>> change this to my function?
>>
>> Thanks to all
>>
>

-- 
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.

Reply via email to