Hi
I'm using remote smtp server(from my host company) and send email from local computer.(google app development server) But instead of getting nice emails i get emails that contain headers as if it ware content of email What can do to change it?
Hi
I'm using remote smtp server(from my host company) and send email from local computer.(google app development server) But instead of getting nice emails i get emails that contain headers as if it ware content of email What can do to change it?
Send the email according to the SMTP RFC: http://tools.ietf.org/html/rfc5321
Getting the headers in the content sounds like you sent them twice or did separate the headers from the content in a way your mail client does not understand.
Check you don't have something wrapping what you send in another layer of email.
Perhaps look at the current (real/outer) headers to see if that gives any clues.
Hi, My guess is that you have a newline (\r\n or Carriage Return -Line Feed) in your subject. And, your mailing program doesn't strip newlines in the subject.
If you put a newline in the subject, and your app doesn't remove it, you just moved all following headers down to the body.
Cheers!
Dave
Can you show us your code, please? You don't say which App Engine runtime you're using; I'll assume Python. The App Engine mail API doesn't let you directly set message headers. There's a list of attributes you can set here.