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

rendered_contents is set to empty string with multipart email #7

Open
tonydewan opened this issue Jun 1, 2023 · 0 comments
Open

rendered_contents is set to empty string with multipart email #7

tonydewan opened this issue Jun 1, 2023 · 0 comments

Comments

@tonydewan
Copy link

If your mail has text and HTML parts, the Mail::Message created in send is multipart, so to_s is effectively a no-op. I'm not sure exactly what the best practice would be here, but sent_mail.parts.map(&:to_s).join works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant