Skip to content

rendered_contents is set to empty string with multipart email #7

@tonydewan

Description

@tonydewan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions