[web2py] how to get the message-id of a send mail

2010-11-22 Thread selecta
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

Re: [web2py] how to get the message-id of a send mail

2010-11-22 Thread Bruno Rocha
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