-
Notifications
You must be signed in to change notification settings - Fork 11
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
Can't sent mail with empty body #14
Comments
I guess this is sort of by design. Under what circumstance would an Email be sent without a body? Happy to change this is there is a good reason. |
Hi, The message I want to send is constructed of an ‘alternate view’ and resources. This way a message with embedded images is displayed correctly in GMAIL, Outlook and iOs mail. If I use the body property of the message, the message is not displayed correctly in all clients. Met vriendelijke groet, Hans Wijntjes Van: Ashley Medway [mailto:notifications@github.com] I guess this is sort of by design. Under what circumstance would an Email be sent without a body? Happy to change this is there is a good reason. — |
I see, as a current workaround if you duplicate your alternative view html into the body as well as alternative view. The resources will still be embedded. I will update the code to explicitly use alternative views if they are provided. |
Thanks for the quick response. I believe we already tested this work around, but I think the mail was shown twice on iOS phones. But I will retry this workaround soon. Met vriendelijke groet, Hans Wijntjes Van: Ashley Medway [mailto:notifications@github.com] I see, as a current workaround if you duplicate your alternative view html into the body as well as alternative view. The resources will still be embedded. I will update the code to explicitly use alternative views if they are provided. — |
MailJetClient.SendMessage(MailMessage) method fails with "Object reference not set to an instance of an object" if MailMessage.body is empty.
The text was updated successfully, but these errors were encountered: