Re: E-mailing forms

2007-02-13 Thread [EMAIL PROTECTED]

As one might expect, mail.send_mail() sends mail. You just need to
call it when you're saving or otherwise processing the form data.

On Feb 13, 1:27 pm, "ChelleBell" <[EMAIL PROTECTED]> wrote:
> I have seen all of this before, but will this send the form directly
> to an e-mail address, or after someone has submitted the form, will I
> have to go in and e-mail the form to the person?


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: E-mailing forms

2007-02-13 Thread ChelleBell

I have seen all of this before, but will this send the form directly
to an e-mail address, or after someone has submitted the form, will I
have to go in and e-mail the form to the person?


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: E-mailing forms

2007-01-31 Thread Ramdas S
Make sure your settings.py file has this. Please fill accordingly

DEFAULT_FROM_EMAIL =
EMAIL_HOST =
EMAIL_PORT =
EMAIL_HOST_USER =
EMAIL_HOST_PASSWORD =

On 1/31/07, Mike <[EMAIL PROTECTED]> wrote:
>
>
> There's also a documentation section for this topic located here:
>
> Sending e-mail
> http://www.djangoproject.com/documentation/email/
>
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: E-mailing forms

2007-01-31 Thread Mike

There's also a documentation section for this topic located here:

Sending e-mail
http://www.djangoproject.com/documentation/email/


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: E-mailing forms

2007-01-31 Thread [EMAIL PROTECTED]

In the view, you need
from django.core import mail, validators

then something like
def save(self, message, from, to):
mail.send_mail("Email title, whatever that is",
   message,
   from,
   [to],
   fail_silently = False
)


The real key is mail.send_mail. Note that message needs to be the
message, whatever that is. Both message and from may be variables you
pass in. The 'To' field MUST be a list, even if it's only one person.
The above is just pseudo-code, and probably won't work, but like I
said, mail.send_mail is the key.

On Jan 31, 11:24 am, "ChelleBell" <[EMAIL PROTECTED]> wrote:
> I have made a form, that is up and running partially. What I am
> looking to do is this form will be a sign up for a camp, but what i
> was wondering is if there is a way that the form can be e-mailed to
> someone after a person has filled it out. I cannot find anywhere on
> the django site that tells me how to go about doing this. I don't
> really know a whole lot about django so if there is any possible way
> to explain it to someone who has no prior experience using django that
> would be a GREAT help! Thanks!


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---