I guess you have to create table to store your sent messages, and a method
which sends and store the send message.
db.define_table('sentmail',Field('to'),Field('from'),Field('body'))
def mail_sender(to,body):
try:
#send the mail
.....
.....
return
dict(status='sent',mail_id=db.sentmail.insert(to='',from='',body=''))
except Exception, e:
#report the failure
#stores the message for send later
return dict(status='fail',fail_id=db.unsentmails.insert())
2010/11/22 selecta <[email protected]>
> I was wondering if there is a proper way to get the message-id of a
> send mail.
> mail.send just returns true or false
> So far I tried to send the mail also to my own account and guess from
> comparing header and body that this is the mail that I send out. This
> however gives me quite some headaches with all the different character
> encodings ...
>
> Is there a better way to get the message-id of a send mail?
--
Bruno Rocha
http://about.me/rochacbruno/bio