def resend_email_verification():
    url = 'https://' + 
request.env.http_host+URL('default','user',args=['verify_email']) + '/'+ 
auth.user.registration_key
    mail.send(to=auth.user.email, subject=T('confirm your email'), 
message='click this link to finish creating your account:' +  url)
    return



On Thursday, March 17, 2016 at 5:42:29 PM UTC+2, Yibing Liu wrote:
>
> I have used a commercial smtp service. Is there a way to resend the 
> verification email to the users? Thank you.
>
> 在 2016年3月17日星期四 UTC+8上午7:31:15,Massimo Di Pierro写道:
>>
>> The reliability of this depends on the smtp server certificates. using 
>> postfix on localhost is very unreliable. Using a commercial service is 
>> better
>>
>> On Wednesday, 16 March 2016 07:41:21 UTC-5, Yibing Liu wrote:
>>>
>>> Hello everyone, I developed a website with web2py. I have 
>>> set auth.settings.registration_requires_verification = True to verify the 
>>> register's email. However some of the users tell me that they can't receive 
>>> the verification email. They try to re-register with the same email to get 
>>> the verification emailIs, but they get the message"the email has been 
>>> registered". Is there any method to re-send the verification email to the 
>>> user? Thank you.
>>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to