On Wed, Jan 28, 2009 at 12:20 PM, madhav <madhav....@gmail.com> wrote:
> > I need some help regarding django emailing. I have set the > settings.EMAIL_HOST_USER to 'do-not-re...@mysite.com' and whenever I > am trying to send an email in any context, its taking the 'do-not- > re...@mysite.com' as from address and sending it, eventhough I supply > a different from-address while sending that specific email. How do I > fix this? Are you using authentication when connecting to the mail server? This recent thread: http://groups.google.com/group/django-users/browse_thread/thread/138d1eea6d1125ec?hl=en# notes similar behavior, when using gmail (which requires authentication, I believe) as the mail server. It's intuitive behavior -- if you have authenticated to the mail server using one identify, it seems logical that mail sent on that authenticated connection would be "From:" that identity, not some other identity. For all I know such behavior is mandated by one of the mail-related RFCs, but this is not an area I am familiar with, so I really have no idea. All I can say is from a quick look at the django.core.mail code, there doesn't appear to be any special-case code that discards the specified "From" in favor of EMAIL_HOST_USER, so I don't believe it is any code within Django that is causing this. Karen --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---