Problem with Mail gem: bounced and error_status return nil

H

Henrique Testa

Hi there!

I must be missing something about Mail gem, bounced? and error_status
don't work for
me. I have just one message on the server, and it is a bounced e-mail.
So I tried the following:

Mail.defaults do
retriever_method :pop3, { :address => "pop.gmail.com",
:port => 995,
:user_name => '<username>',
:password => '<password>',
:enable_ssl => true }
end

mail = Mail.first # #<Mail::Message:2201530420, Multipart: false,
Headers: <Return-Path: <>>,...
mail.subject # "Delivery Status Notification (Failure)"
mail.bounced? # nil
mail.error_status # nil
mail.diagnostic_code # nil

Shouldn't "bounced?" return true?

Thanks !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top