How can I work with/around Gmail's SMTP outbound sending limits?

前端 未结 4 1949
悲&欢浪女
悲&欢浪女 2021-02-03 14:16

I\'m using my Gmail Apps for Domain account to send email within my rails application for standard automated emails (user signup, forgot password, notify admin of new comment, e

4条回答
  •  面向向阳花
    2021-02-03 15:06

    The comment box was becoming too restrictive for my questions. Changing the ActionMailer::Base.smtp_settings hash dynamically works as expected for me, so I suspect there is some other factor at play here. Some things to try:

    1. Are you using a TLS plugin? I used action_mailer_optional_tls with Rails 2.3.2 and Ruby 1.8.6.
    2. What is being writing to the log/console?
    3. You're changing the username but not the password: do all the noreply accounts have the same password?

    Edit: more things to try

    I'd have a good look at that smtp_tls.rb file mentioned in the comments to make sure nothing's hard-coded. Or remove it and try the plugin I linked above. To use it, you just need to add :tls => true to the smtp_settings hash.

提交回复
热议问题