You can send MIME emails with this. It is just a matter of buindig the proper message. Somebody posted an example on this list but I cannot find it now. We have been having problems with searching this list. Perhaps somebody else can help more.
Massimo On Sep 1, 12:46 am, Aditya Desai <[email protected]> wrote: > I modified the code by changing the server settings to smtp. However, > I need to use tls for gmail authentication as was mentioned in the site > (http://mail.google.com/support/bin/answer.py?hl=en&answer=13287). > > def sendmail(): > mail=Mail() > mail.settings.server='smtp.gmail.com:587' > mail.settings.sender='[email protected]' > mail.settings.login='[email protected]:password' > return mail.send(to=['[email protected]'], > subject='hi',message='hi) > > I searched the net for the same and found a class MultiPart_Mail > (https://mdp.cti.depaul.edu/wiki/default/page/98b7448f-059a-47f7-82da- > dce4728aa4dd) which provides the functionality of setting the use_tls > field to true. However, the web2py installation I have(which is the > latest) and also the official web2py site(http://www.web2py.com/ > examples/static/epydoc/web2py.gluon.tools-module.html) has no mention > of MultiPart_Mail. Also the Mail class provided by web2py has only > four fields ['login', 'lock_keys', 'sender', 'server'] > > Can anyone please provide any help on how to proceed. > > Thanks and Regards, > Aditya . --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

