Net::SMTPFatalError 555 5.5.2 Syntax error a8sm19427994poa

Hi,

I’ve sent e-mails with action mailer in other controllers.
Now I’m repeating the same trick to send emails.
I have

def bt_notify( bt )
@recipients = bt.product.user
@body[“product”]=bt.product
@body[“bt”]=bt
@from = “[email protected]
@subject = “blahblah”
end

in my mailer.rb

and
Mailer.deliver_bt_notify(@bt)

in the controller

finally the bt_notify.rhtml

<%[email protected]%>
here

By PickIt

And when mailer.deliver_bt_notify is executed, it got the error as
title.
Anyone knows what’s wrong?

THanks

Abon

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs