if the smtp from gmail shows that the email has been sent, there's nothing 
web2py can do.
you can specify a bounce address and check it at a later time to see if the 
mail has been correctly delivered, but there's no way around it .

On Thursday, May 28, 2015 at 7:16:55 AM UTC+2, Lasya Venneti wrote:
>
> So I made a small app that sends emails from web2py, connected to the 
> gmail smtp server. The problem here is that it always gives me a success 
> message! 
> Even when the email-id is invalid. I have tested the bounce back feature 
> of gmail by sending mails from gmail to invalid email ids to which gmail 
> says 'Your message has been sent', but on going to the sent folder gives 
> the mailer daemon with a time lag(this differs for different mailing 
> services). 
>
>
> I think the mail.send() feature of web2py is unable to capture that and 
> takes the 'Your message has been sent' as confirmation. How can one capture 
> mails that haven't been sent using web2py?
>
>
> if mail.send(session.email,subject=session.subject,message= session.message):
>             response.flash = 'email sent sucessfully.'else:
>             response.flash = 'fail to send email sorry!
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

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