I'm running into this error "Net::SMTPSyntaxError (502 5.5.1 Unrecognized command"
I have this code working:
class Notifier < ActionMailer::Base
default :from => "sammy@mysite.tv"
def comment_updated(comment, user)
@comment = comment
@user = user
mail(:to => user.email,
:subject => "[JS] #{comment.job.subject_name} - # {comment.job.subject_name}")
end
end
But the code below throws this error "Net::SMTPSyntaxError (502 5.5.1 Unrecognized command":
class Notifier < ActionMailer::Base
default :from => "sammy@mysite.tv"
def comment_updated(comment, user)
@comment = comment
@user = user
mail(:to => user.email,
:subject => "[JS] #{comment.job.subject_name} - #{comment.job.subject_name}",
:from => "jSearch
<comment+#{comment.job_id}@mysite.tv>") do |format|
format.text
format.html
end
end
end
I would like to use the Cloudmailin service to process my incoming emails, so I would like to have a :from address when users click reply.
Any idea why this code with the extra :from wouldn't work?