Hi, all.
I have a very simple Mailer class
class AliasMailer < ActionMailer::Base
def receive(email)
puts email.body
end
end
And I have problem here with TMail::Mail object that I received via
receive() function.
I am trying to get body of the mail but I have following text
Hello\r\n\r\n--\r\n\r\n\r\nHello<br clear=\"all\"><br>--
<br>h
for mail that have in body just word Hello. It means that TMail::Mail object
returns body both as plain-text and html text.
But I need only first one. What is right answer on my question??
I have sent mail from Google account that I believe sends it as html. But
anyway in Mailer I need text as plain text.
--
anatol (http://pomozov.info)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060128/aaabe624/attachment-0001.html