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 1026019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:01:06+00:00 2026-05-16T12:01:06+00:00

Sending emails works perfectly for all major email clients, except for hotmail (and some

  • 0

Sending emails works perfectly for all major email clients, except for hotmail (and some other), it shows as:

=?windows-1255?Q?Z33=30_=F9=22=E7=20=F2=E1=E5=F8_=F9=E5=E1=F8=20=E1=F9=E5=E5=E9=20=36=30_=F9=22=E7=20=EC=22=EE=F8=E2=E5=E6=E4=22=2C_=E1=E9=FA_=F7=F4=E4=20=E5=EE=E0=F4=E9=E9=E4_=EE=F9=F4=E7=FA=E9=FA=2C=20=E1=EE=FA=E7=ED=20=F9=E5=F7=20=E4=F4=F9=F4=

Dosn’t matter if it’s utf8 or not. It seems like hotmail can’t read long quoted subjects, because for shorter ones it shows up ok.

AFAIK what gmail does for example is to split the subject to pieces, 64 (or something) chars long…
But I can’t figure out how to do that in rails (2.3.8).
Rails encodes the subject by default, in quoted form, can’t find how to override that so I could split it by myself…

Thanks.

  • 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-05-16T12:01:07+00:00Added an answer on May 16, 2026 at 12:01 pm

    This is what worked for me:

    module ActionMailer
      module Quoting
        def quoted_printable(text, charset)
          require 'base64'
          #text.scan_utf8(/.{1,64}/m).map{|text| "=?#{charset}?B?#{Base64.b64encode(text)}?="}.join("\n")
          "=?#{charset}?B?#{Base64.b64encode(text).gsub(/\n/, '')}?="
        end
      end
    end
    
    module TMail
      class SubjectHeaderField < UnstructuredHeader
        def parse
          #Do nothing
        end
      end
    
      class HeaderField
        FNAME_TO_CLASS = FNAME_TO_CLASS.merge('subject' => SubjectHeaderField)
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sending an email in action view, it works perfectly fine in gmail
Currently sending emails and setting the Return-path of an email(System.Net.Mail) works if i put
Below is the code I have for sending email which works great. /* *
I've been working with sending and receiving email through various web-mail clients using WatiN,
Delayed job (2.1.4) is working perfectly on my development machine, sending emails with gay
I am sending emails in a program like so: Call Shell(smtpPath, emailInput...) This works
I am sending html emails through php . the email has a background image
I have some PHP code that help send emails. The way it works is
I m using phpmailer for sending emails in my website. My code works fine
I am sending emails to our clients from Java. And there is no any

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.