Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing encoding in email alternate view #2900

Conversation

tingung
Copy link
Contributor

@tingung tingung commented Jul 19, 2019

Fixes #2899

Summary

Set AlternativeView.Encoding with bodyEncoding

  • This is to ensure AlternativeView encoding is always consistent with bodyEncoding and not relying on the body text
  • Extract the code to AddAlternateView method to allow UTs
    Notes: UT covered existing behavior even not part of the changes. Minor fix to the existing test method (ConvertToText_removes_styles_including_css_defs)

Confirmation Video - https://drive.google.com/file/d/1tiz3ce6gJtVrD4ZclsRX-Z3PDaryFbSr/view

- This is to ensure AlternativeView encoding is always consistent
with bodyEncoding and not relying on the body text
- Extract the code to AddAlternateView method to allow UTs
@dnfclas
Copy link

dnfclas commented Jul 19, 2019

CLA assistant check
All CLA requirements met.

@tingung tingung closed this Jul 19, 2019
@tingung tingung reopened this Jul 19, 2019
Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@daguiler daguiler changed the title DNN-30859 fix missing encoding in mail send mail alternate view Missing encoding in email alternate view Jul 19, 2019
@daguiler daguiler added the esw Issues reported by ESW team or Evoq customers label Jul 19, 2019
@amarjeet amarjeet self-requested a review July 19, 2019 17:53
@amarjeet amarjeet merged commit 316a354 into dnnsoftware:development Jul 19, 2019
@mitchelsellers mitchelsellers added this to the 10.0.0 milestone Jul 19, 2019
@tingung tingung deleted the bugfix/DNN-30859-fix-missing-encoding-in-Mail-SendMail-alternate-view branch January 10, 2020 06:25
@mitchelsellers mitchelsellers removed this from the 10.0.0 milestone Aug 31, 2021
bdukes added a commit to bdukes/Dnn.Platform that referenced this pull request Aug 31, 2021
This functionality was inexplicably removed in b3e066f dnnsoftware#4187

Includes fixes originally from dnnsoftware#2900 (1b44e1d)
Fixes dnnsoftware#2899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
esw Issues reported by ESW team or Evoq customers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DotNetNuke.Services.Mail::sendMail doesn't use bodyEncoding for alternative view in multipart message
6 participants