class Mail::Message

def subject=( val )

mail.subject #=> "This is あ string"
mail.subject = '=?UTF-8?Q?This_is_=E3=81=82_string?='

Example:

Sets the Subject value of the mail object, pass in a string of the field
def subject=( val )
  header[:subject] = val
end