Re: Email Form with attachments

2021-07-14 Thread khokon dev
. >> >> How does it work? That i store attachments and when user then click >> submit from email form then all attachments are linked with new email? >> >> Regards >> > -- You received this message because you are subscribed to the Google Grou

Re: Email Form with attachments

2021-07-04 Thread David Crandell
upload > und stored. > > But when i create a new email email is not stored so i can't linked new > files with this new email. > > How does it work? That i store attachments and when user then click submit > from email form then all attachments are linked with new emai

Email Form with attachments

2021-07-04 Thread sebasti...@gmail.com
. But when i create a new email email is not stored so i can't linked new files with this new email. How does it work? That i store attachments and when user then click submit from email form then all attachments are linked with new email? Regards -- You received this message because yo

Re: Best Practices for transferring email form data to web server

2015-08-31 Thread pythonista
That worked. I was not aware of the csrf exempt directive. My email form works the way that I want. On Friday, August 28, 2015 at 5:22:46 PM UTC-4, pythonista wrote: > > > > I have created a form that works fine for GETS and POSTS through the > browser. > > I have embedde

Re: Best Practices for transferring email form data to web server

2015-08-29 Thread Stefano Probst
You can disable the CSRF-protection via csrf_exempt . -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Best Practices for transferring email form data to web server

2015-08-28 Thread pythonista
I have created a form that works fine for GETS and POSTS through the browser. I have embedded the form with a GET (action) in the email, and the data gets transferred to the server as expected. The email POST looks like it needs a csrf token. Is there anyway to generate this and embed it on t

Re: How to remove Group field from Email Form

2014-06-04 Thread Sergiy Khohlov
mails() > . > > But no luck, it did not work, the Group still displayed. > > Serge >> >> >> +380 636150445 >> skype: skhohlov >> >> >> On Fri, Apr 18, 2014 at 4:21 PM, nobody wrote: >> > Hi, >> > >> > In an

Re: How to remove Group field from Email Form

2014-04-18 Thread nobody
class EmailForm(EmailForm): exclude = ['Group'] def get_emails() . But no luck, it did not work, the Group still displayed. Serge > > > +380 636150445 > skype: skhohlov > > > On Fri, Apr 18, 2014 at 4:21 PM, nobody > > wrote: > > Hi, >

Re: How to remove Group field from Email Form

2014-04-18 Thread Sergiy Khohlov
add exlude= ['Group'] to the form.py Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Apr 18, 2014 at 4:21 PM, nobody wrote: > Hi, > > In an email form template file, the following tag displays tree input > fields, Subject, Body and Group, but I only need

How to remove Group field from Email Form

2014-04-18 Thread nobody
Hi, In an email form template file, the following tag displays tree input fields, Subject, Body and Group, but I only need Subject and Body field, not the Group, how can I remove the Group field? {% form_as_div form %} Thank you. -- You received this message because you are subscribed to

Re: Email form

2009-05-18 Thread Oli Warner
After a little hacking around, I ended up with this: (remember that the forms are inheriting this class, so the function has inherent access to fields - something I forgot): class EmailForm(forms.Form): def sendemail(self, fromAdd, toAdd, subject, keys=None, breaks=[], ignore=[]): body

Re: Email form

2009-05-18 Thread Aneesh
I don't think there's a simple way to do this (someone correct me if I'm wrong!). The view that processes your form receives a POST (or GET) request containing only key-value pairs for the form fields. It doesn't get passed any other information about the form (incl labels). So, you'd have to l

Email form

2009-05-18 Thread Oli Warner
I've made a couple of forms that are basically supposed to dump their content into an email and send that on. My forms both inherit this class: class EmailForm(forms.Form): def sendemail(self, fromAdd, toAdd, subject, keys=None): body = '' if not keys: keys = self.cleaned_data