[web2py] Re: attach .vcf file to mail

2013-05-14 Thread Niphlod
do you need to send the email within web2py or you want to open the user's email program with that vcf attached ? Il giorno martedì 14 maggio 2013 09:45:40 UTC+2, Annet ha scritto: > > I have a download vCard button in one of my views. Instead of downloading > the vCard to the vistors addressbook

[web2py] Re: attach .vcf file to mail

2013-05-14 Thread Annet
Hi, Thanks for you reply. do you need to send the email within web2py or you want to open the user's > email program with that vcf attached ? > I would like to send it within web2py. Something like a button which opens a form in which the visitor provides a from and to e-mail address and a s

[web2py] Re: attach .vcf file to mail

2013-05-14 Thread Anthony
See http://web2py.com/books/default/chapter/29/08#Attachments. Instead of specifying a file path as the first argument to mail.Attachment(), you can pass in a file-like object, such as a cStringIO.StringIO object. Note, in that case, you will also have to specify the "filename" argument to provi

[web2py] Re: attach .vcf file to mail

2013-05-14 Thread Annet
HI Anthony, Thanks for your reply. Before posting this question, I had a look at the attachments section in the book, however, I could not figure out how to proceed, with your comments I think I'll be able to solve the problem. Kind regards, Annet -- --- You received this message because