Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8259487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:52:34+00:00 2026-06-08T02:52:34+00:00

I am sending emails via Rails, ActionMailer, 1.9 Ruby and rails 3.0 All is

  • 0

I am sending emails via Rails, ActionMailer, 1.9 Ruby and rails 3.0

All is good, I am sending emails with accented characters in subject lines and body, without issue. My charset default is UTF-8.

However when I try to send an email to an address containing accented characters it is failing miserably. I first had errors about the email address being invalid and it needing to be fully qualified.

To get around that, I needed to specify the email address in the format ‘”” ‘.

However it is sending now, but the characters in the address on the mail client, appear as =?UTF-8?Q?…. which is correct, Rails is rightly encoding my UTF8 address into the header for me.

BUT

My mail client is not recognising this in its display, so it renders all garbled on screen. garbled as in the actual text =?UTF-8?Q?…. appears in the “To” field on the client.

The encoding is UTF8 etc. charset is UTF8, Transfer Encoding is quotable printable.

What am I missing? It is doing my head in!

Also, as a test, I sent an email from my mac mail client to an address with accented characters. This renders fine in my client, however the headings are totally different… as in the charset is an iso, the transfer encoding is base64…. so I am thinking I need to somehow change actionmailer to encode my mails differently? i.e. using iso and base64 encoding to get it to play nice?

I tried this but to no avail. I am either doing it wrong or completely missing the point here? From readong the various forums and sites on this, I need to encode the header fields in a certain way, but I am failing to find the answers I need to tell me exactly what that encoding is and more specifically how can I do this in Rails?

Please help! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:52:36+00:00Added an answer on June 8, 2026 at 2:52 am

    finally solved this, if you wrap the local part of the email in quotes, and leave the domain part unquoted it works a treat. Seems like Mailer is encoding the full email address if you dont wrap in quotes, and hence breaks the encoding over to the server.

    e.g.
    somébody@here.com wont work

    where as
    “somébody”@here.com will work

    routes through fine and displays fine in all clients.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sending emails via my C# application the way below MailMessage mail =
I just started playing with AspectJ (1.6.11). I'm sending emails via commons-email libary and
I am sending out emails from rails, in the emails are images. Those images
I am sending emails via an html page using javascript and the outlook activex
I managed to configure ActionMailer on my local machine to send emails via Gmail.
I am sending emails from my server via PHP > postfix > Sendgrid. In
I've built a small client applicatoin in c#. I am sending the emails via
I'm having problems sending email via my Ruby code. You can see my full
I'd like add to my app function allowing sending email via Outlook same as
as indicated by the title I am having trouble sending an email via my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.