Re: Concat a message with send_mail

2010-04-15 Thread Pep
Ok thanks, I choose this one On 15 avr, 18:23, "ge...@aquarianhouse.com" wrote: > As already mentioned, the best would be to use > render_to_string('email_template.txt', {'name':'John', > 'msg':'message'}) and pass it through. > > On Apr 15, 6:13 pm, Tim Shaffer wrote: > > > > > Can't you just c

Re: Concat a message with send_mail

2010-04-15 Thread ge...@aquarianhouse.com
As already mentioned, the best would be to use render_to_string('email_template.txt', {'name':'John', 'msg':'message'}) and pass it through. On Apr 15, 6:13 pm, Tim Shaffer wrote: > Can't you just concatenate them like so? > > message = "Last Name: " + last_name + " Message: " + message > > Or if

Re: Concat a message with send_mail

2010-04-15 Thread Tim Shaffer
Can't you just concatenate them like so? message = "Last Name: " + last_name + " Message: " + message Or if you want to get really fancy, you could create a template, pass the form as a context, and render the template for the e-mail message. -- You received this message because you are subscri

Concat a message with send_mail

2010-04-15 Thread Pep
Hi everybody ! is it possible to concat a message with send_mail ? I mean : I have my ContactFrom with some forms like last_name and myMessage. To send the message, I have to use send_mail(subject, message, sender, recipients). And I would like to include last_name and myMessage on message