English 中文(简体)
为什么没有:从参数上看,我的铁路行动邮件者?
原标题:Why doesn t the :from parameter work on my Rails actionmailer?

我对送电子邮件给铁路进行了辅导,我是在我的制作中这样做的。 页: 1

  ActionMailer::Base.smtp_settings = {
    :tls            => true,
    :address        =>  smtp.gmail.com ,
    :port           => 587,
    :domain         =>  http://myapp.heroku.com ,
    :authentication => :plain,
    :user_name      =>  [email protected] ,
    :password       =>  mypassword 
  }

And this Actionmailer

mail(
     :to => user.email,
     :from => "[email protected]",
     :subject => "Welcome to My App",
     :body => "Please activate your account by going to this address: 
" +
              "http://myapp.heroku.com/" + 
              user.username + "/activate/" + user.activation_key
     )

电子邮件: [104 电子邮箱: Protect],而不是

最佳回答

你可以说,Gmail确实允许你像其他人一样寄出邮件(显然原因)。

问题回答

暂无回答




相关问题
How to use send an email with accents using actionmailer

My environment.rb is like this: ActionMailer::Base.default_charset = "iso-8859-1" which should be enough for accents, but here is how the message s subject is being sent: Convite para ...

Setting ActionMailer template_root at runtime

Is it possible to set template_root for ActionMailer at runtime? I seem to be able to do this in development mode by using: ActionMailer::Base.template_root = my_view_path if File.exists (File.join(...

Managing critical errors: logging & email [closed]

What s the best way to send quick one-liner e-mails to an administrative address in Rails? I am using the Rails Logger to keep track of nasty problems in my application. One of my controllers is ...

email sent status from rails or actionmailer

I am developing a test application and running the whole thing on my work pc. I am using my corporate mail server to send mails. It works fine normally. I was wondering how to handle any conditions ...

Rails ActionMailer problems on Mac

I ve been working on learning to use Rails the last couple days and I ve run into something that I haven t been able to solve with Google. So I m just creating a basic contact form that sends an ...

热门标签