Thank you for your answer but there is error "join() takes exactly one argument (3 given)"
"Jeremy Boyd" <boy...@gmail.com> pisze: > > Kolo, > > I'm not positive this is what you're asking, but it seems to me that > a) you might want to build up a string with the message as you'd like > it to be displayed. So, for example: > > subject = field1 + " has sent you a new message" > message = " ".join("You have a new message! Here are the form > fields:", field1, field2, field3) > > send_mail(subject, message, "your_from_addr...@gmail.com", > ["recipie...@domain.com"], fail_silently=True) > > Hope this helps. > > On Jul 29, 9:08 am, el_kolo <el_k...@interia.pl> wrote: > > Hi, > > > > I have a form (class myForm(forms.Form)) with a few fields. I want to > > send this form to my email account. I have put this form to my > > template with button SEND. Everything works fine but using send_mail > > function I can send only ONE field from my from to my email account. > > send_mail('Subject here', 'Here is the message', 'f...@example.com', > > ['....@example.com'], fail_silently=False) > > > > Do you know how to send whole form or 2-3 fields? > > > > ps. sorry for my english:P > > > > > ---------------------------------------------------------------------- Chcesz czuc sie bezpiecznie podczas wakacyjnych podrozy? Nie zapomnij o tym, by sie ubezpieczyc. Najtaniej zrobisz to na http://link.interia.pl/f2284 Kliknij i sprawdz. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---