Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

These similar methods exist in v7.1.3.2:

receive(raw_mail) public

Receives a raw email, parses it into an email object, decodes it, instantiates a new mailer, and passes the email object to the mailer object’s receive method.

If you want your mailer to be able to process incoming messages, you’ll need to implement a receive method that accepts the raw email string as a parameter:

class MyMailer < ActionMailer::Base
  def receive(mail)
    # ...
  end
end
Show source
Register or log in to add new notes.