【问题标题】:Rails ActionMailer sends email but it does not show up as a sent email in the mailbox usedRails ActionMailer 发送电子邮件,但在使用的邮箱中未显示为已发送电子邮件
【发布时间】:2021-07-08 08:03:49
【问题描述】:

我正在使用 namecheap 发送电子邮件,它使用私人电子邮件。

我在 ActionMailer 中的设置是:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  address:              'mail.privateemail.com',
  port:                 587,
  domain:               'privateemail.com',
  user_name:            'very@cool.com',
  password:             "very_secret",
  authentication:       'plain',
  enable_starttls_auto: true
}

正如他们所说的:

https://www.namecheap.com/support/knowledgebase/article.aspx/1179/2175/general-private-email-configuration-for-mail-clients-and-mobile-devices/

现在它发送电子邮件,但是当我登录网络客户端时,它没有显示已发送文件夹中发送的任何邮件。

为什么会这样?

【问题讨论】:

    标签: ruby-on-rails email actionmailer


    【解决方案1】:

    SMTP 发送是指发送电子邮件而不是发送电子邮件并将其存储在已发送文件夹中。这必须由客户另外完成!

    【讨论】:

    • 客户是指私人邮箱?
    • 是和不是。我不知道这是否可能。发送后将发送的邮件放入一个特殊的文件夹通常由客户端软件完成,例如网络邮件工具或您的桌面客户端,如雷鸟或其他东西。在所描述的场景中,它应该由 ActionMailer 完成,但我实际上不知道 ActionMailer 是否可以做到这一点。如果需要发送的邮件作为副本,可能会添加自我,因为密件抄送是一种解决方法。
    猜你喜欢
    • 2015-02-06
    • 2020-04-19
    • 1970-01-01
    • 2014-12-31
    • 2011-08-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-27
    相关资源
    最近更新 更多