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

前端 未结 4 1943
悲&欢浪女
悲&欢浪女 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:14

    You should be able to set the :user_name element in the hash in the mailer in the same fashion as in the configuration, namely by doing:

    ActionMailer::Base.smtp_settings[:user_name] = 'new_user_name'
    

    Although this may require some extra code to force a reload of any internal action mailer config (not tested this myself)

提交回复
热议问题