On Sunday 16 November 2008 06:26:18 pm Srdjan Popovic wrote:
> def send_mail(subject='', text='', sender='', to=''):
>     M = poplib.POP3(settings.EMAIL_HOST)
>     M.user(settings.EMAIL_HOST_USER)
>     M.pass_(settings.EMAIL_HOST_PASSWORD)
>     headers = "From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n" % (sender,
> to, subject)
>     message = headers + text
>     mailServer = smtplib.SMTP(settings.EMAIL_HOST)
>     mailServer.sendmail(sender, to, message)
>     mailServer.quit()

i was using something similar in a python (not django) programme, and found on 
reception that the date of post section was missing - kmail has a field 
called 'Order of arrival' and this was not there in the mails. Could be that 
you have to put some date/timestamp?

-- 
regards
KG
http://lawgon.livejournal.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to