Forum: Ruby on Rails Net::SMTPFatalError 555 5.5.2 Syntax error a8sm19427994poa

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D51a24ae1017f53158d70b621494255d?d=identicon&s=25 Bontina Chen (abon)
on 2007-03-13 10:58
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 = "xxxx@gmail.com"
    @subject = "blahblah"
  end

in my mailer.rb


and
     Mailer.deliver_bt_notify(@bt)

in the controller

finally the bt_notify.rhtml


<%=@product.title%>
<a href="http://xxx/bt/show/<%=@bt.id%>">here</a>


By PickIt

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

THanks


Abon
This topic is locked and can not be replied to.