cjlotz / Xamarin.Plugins

Cross platform Xamarin Plugins
MIT License
113 stars 56 forks source link

HTML is being stripped from the message. #90

Closed FrazzApps closed 6 years ago

FrazzApps commented 6 years ago

The tag is being stripped when I send this message:

   var msg = "Well hello there from <a>Xam.Messaging.Plugin</a>";
                var email = new EmailMessageBuilder()
                  .To("")
                  .Subject(AppResources.Email_Share_Subject)
                  .BodyAsHtml(msg)
                  .Build();

                var emailTask = Plugin.Messaging.CrossMessaging.Current.EmailMessenger;

                emailTask.SendEmail(email);
cjlotz commented 6 years ago

@FrazzApps On what platform is this happening? Please provide some more context.

FrazzApps commented 6 years ago

Sorry It's on Android 7.0 and I'm on Xamarin Forms 2.5.0.122203 and I have Xam.Plugin.Messaging 5.1.0 installed

FrazzApps commented 6 years ago

(clicked the wrong button)

cjlotz commented 6 years ago

@FrazzApps What e-mail app are you using to send the e-mail? Gmail?

FrazzApps commented 6 years ago

Yes Gmail

cjlotz commented 6 years ago

@FrazzApps I've had problems with the HTML support in the GMail app. It doesn't seem to work which is unfortunate as this is by far the most used app for sending e-mail on Android. When I run the HTML sample on my own device, the email is formatted correctly when sending it using another email client like Aquamail. However, when using Gmail, the HTML content is not formatted correctly. Other users are reporting the same issue

FrazzApps commented 6 years ago

That's really too bad since the tag would seem to be critical for most applications...