DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Add Custom Mail Header In Padrino Mailer

07.21.2011
| 2611 views |
  • submit to reddit
        You want to add a custom mail header in padrino mailer

  email :mail_name do
    to               "to@internet"
    from           "from@internet"
    subject       "Subject"
    headers       Hash["Header_name", "Header_value" ]
    render        "mail_template"
  end