GMail - HTML tag <BR> in body
Hello!
When sending e-mail via GMail OAuth2, the mail body get
tags, for example:
When sending e-mail via GMail OAuth2, the mail body get
tags, for example:
Hello!<BR> <BR> This is a test<BR> of a mulliline e-mail.<BR>The code to fill the e-mail is this (simplified a little):
TppSMTPPlugIn.RegisterClass(TppRESTMailGmail);
Engine.EmailSettings.Subject := 'Test';
Engine.EmailSettings.Body.Text := 'Hello!'#10#13#10#13'This is a test'#10#13'of a multiline e-mail.'#10#13;
Engine.EmailSettings.FromAddress := '';
Engine.EmailSettings.OAuth2.ClientID := 'mysupersecredclientid';
Engine.EmailSettings.OAuth2.ClientSecret := 'mysupersecredcclientsecret';
Engine.EmailSettings.OAuth2.RedirectURI := 'http://localhost';
Engine.EmailSettings.PreviewInEmailClient := false;
Engine.SendMail;
Is there something that I do wrong or is a bug?
Comments
In my testing with your exact Body text, the email showed correctly both in Outlook and the Gmail web interface. How are you viewing this email?
One item I noticed is that a CRLF is actually #13#10. It didn't make a difference when I tested but it might be worth trying.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thank you. I view the mail in the client's mail program.
I will prepare the exact test data that lead to the problem for tomorrow.
I will inspect the problem and if it's related to RB, I will report here.