Cheers,
That was basically the question, what do i put in that to field so the
what I email address I enter to the to field is where the message is
sent to!
Rajesh Dhawan wrote:
>
> On Jan 23, 5:11 pm, Andrew Doades <[EMAIL PROTECTED]> wrote:
>
>> I now have this as the view:
>> if request.method == 'POST':
>> form = ContactForm(request.POST)
>> if form.is_valid():
>> topic = form.cleaned_data['topic']
>> message = form.cleaned_data['message']
>> to = form.cleaned_data.get('to')
>> sender = form.cleaned_data.get('sender')
>> send_mail(
>> 'message, topic: %s' % topic,
>> message, sender,
>> ['to']
>> )
>>
>> I need to have to bottom fields to read what is entered into the ' to '
>> field, I thought something like % to or something would do the trick!?
>>
>
> I am not sure I understand the question. However, that ['to'] should
> instead be [to] in the send_mail() call.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---