I'm guessing that you are not using the gmail web interface (since there is no 
"show all headers" button there).

Could you have a look at one of your emails in gmail, and confirm/deny that it 
is electing to expose this garbage to the user?

Interesting point about the HTML. My HTML does not include html and body 
elements, but it's otherwise proper (and quite simple).

On Oct 14, 2011, at 4:54 PM, Christopher wrote:

> I see the long garbage as the field in the Return-Path field of the
> email, but I have to turn on "Show all headers" in order to see this.
> We use the Java SDK but is pretty much the same. Maybe it has to do
> with what the plain/rich strings look like. Is the rich field proper
> html?
> 
> Message msg = new Message();
> msg.setSubject(subject);
> msg.setSender(sender);
> if (recipients.size() == 1) {
>       msg.setTo(recipients);
> } else {
>       msg.setBcc(recipients);
> }
> msg.setReplyTo(replyTo);
> msg.setTextBody(textContent);
> msg.setHtmlBody(htmlContent);
> msg.setAttachments(attachments);
> try {
>       MailServiceFactory.getMailService().send(msg);
> } catch (IOException e) {
>       e.printStackTrace();
> }
> 
> On Oct 14, 4:49 pm, Joshua Smith <joshuaesm...@charter.net> wrote:
>> Take a look at one of the emails you send to a gmail account (in the web 
>> browser gmail interface).  I suspect you will see this junk. I never noticed 
>> this before because my mail program doesn't show this junk (although it is 
>> there in the message if I view raw headers).
>> 
>> My call is simple as can be:
>> 
>>     mail.send_mail(sender=MAIL_SENDER,
>>                    to=user.email,
>>                    subject="Welcome to {redacted}",
>>                    body=plain,
>>                    html=rich
>>                    )
>> 
>> On Oct 14, 2011, at 4:35 PM, Christopher wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> We send a lot of emails and haven't had this issue. Can you give an
>>> example of how you are using the API?
>> 
>>> On Oct 14, 4:19 pm, Joshua Smith <joshuaesm...@charter.net> wrote:
>>>> Hmmm.  I got the attachment.  I guess google groups are inconsistent.
>> 
>>>> It was a picture of a gmail inbox. It looks like this:
>> 
>>>> supp...@q----------e.com via 
>>>> m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com to me show details 
>>>> 4:05 PM (9 minutes ago)
>> 
>>>> (I've hidden the email domain with -- characters).
>> 
>>>> If I open the details, it shows:
>> 
>>>> mailed-by       m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com
>> 
>>>> So apparently, google thinks its a good idea to name their outgoing mail 
>>>> servers like this, and they think its a good idea to show this garbage to 
>>>> their users.
>> 
>>>> I'm concerned that it is going to scare off users.
>> 
>>>> Any idea if amazon mail service looks any less scary?
>> 
>>>> -Joshua
>> 
>>>> On Oct 14, 2011, at 4:05 PM, Christopher wrote:
>> 
>>>>> Where is the image attached? I cannot see where it would be here. You
>>>>> might try uploading the image to an image hosting site and post the
>>>>> URL here.
>> 
>>>>> On Oct 14, 12:01 pm, Joshua Smith <joshuaesm...@charter.net> wrote:
>>>>>> One of my testers sent me the attached capture of the welcome message my 
>>>>>> app sent them.
>> 
>>>>>> Their reaction was that the gobledegook after "via" made them think 
>>>>>> there was something fishy about this email, and it might not be safe to 
>>>>>> follow the link.
>> 
>>>>>> I don't blame them.
>> 
>>>>>> Is there a way to NOT have this junk show up and scare off my potential 
>>>>>> users?
>> 
>>>>>> -Joshua
>> 
>>>>> --
>>>>> You received this message because you are subscribed to the Google Groups 
>>>>> "Google App Engine" group.
>>>>> To post to this group, send email to google-appengine@googlegroups.com.
>>>>> To unsubscribe from this group, send email to 
>>>>> google-appengine+unsubscr...@googlegroups.com.
>>>>> For more options, visit this group 
>>>>> athttp://groups.google.com/group/google-appengine?hl=en.
>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Google App Engine" group.
>>> To post to this group, send email to google-appengine@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> google-appengine+unsubscr...@googlegroups.com.
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/google-appengine?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to