[web2py] Re: Alert when email not sent sucessfully !

2010-02-12 Thread KMax
I could sudjest to use mail-hooks in two ways. 1. cron check mailbox for bouce messages and get invalid mails from there 2.use /etc/aliases (linux at least) and add there '|/opt/mysqcript' for email address which used to sent mail from. both types I get from RequestTracker http://bestpractical.com

Re: [web2py] Re: Alert when email not sent sucessfully !

2010-01-26 Thread Thadeus Burgess
mail.send only fails if there was an authentication error or it was an invalid formed email... if you send to idontex...@example.com mail.send will still return True. -Thadeus On Tue, Jan 26, 2010 at 7:02 PM, hamdy.a.farag wrote: > Hi Yannic > > I'm not sure whether this what you want or not,

[web2py] Re: Alert when email not sent sucessfully !

2010-01-26 Thread hamdy.a.farag
Hi Yannic I'm not sure whether this what you want or not, but the mail.send() function itself returns True or false , so you could just do : if not mail.send(to=.., subject=,) : response.flash = "Message was not sent" -- You received this message because you are subscribed to the Googl

Re: [web2py] Re: Alert when email not sent sucessfully !

2010-01-25 Thread Thadeus Burgess
nope, not that I know of. -Thadeus On Mon, Jan 25, 2010 at 10:39 PM, Yannick wrote: > Thanks for the note... Yes that's why I was asking because I don't > have a verification link on my appl... I was wondering if there are a > way to know about the failure ASAP... the failure message from SM

[web2py] Re: Alert when email not sent sucessfully !

2010-01-25 Thread Yannick
Thanks for the note... Yes that's why I was asking because I don't have a verification link on my appl... I was wondering if there are a way to know about the failure ASAP... the failure message from SMTP come later in the process... On Jan 25, 11:32 pm, Thadeus Burgess wrote: > Check the servers