# 上次更新后无法发送电子邮件

**URL:** <https://meta.discourse.org/t/mail-is-not-sending-after-the-latest-update/378784>\
**Category:** Support\
**Tags:** email\
**Created:** [2025年八月15日 18:48 UTC](https://meta.discourse.org/t/mail-is-not-sending-after-the-latest-update/378784 "2025-08-15T18:48:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![xpamych](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xpamych/32/373108_2.png) [@xpamych](https://meta.discourse.org/u/xpamych)\
**Post date:** [2025年八月18日 10:06 UTC](https://meta.discourse.org/t/mail-is-not-sending-after-the-latest-update/378784/5 "2025-08-18T10:06:57Z")

</div>

诊断：

```bash
./launcher enter appopenssl s_client -connect smtp.beget.com:465 -servername smtp.beget.co

```

在 Rails 中测试：

```bash
./launcher enter app
rails c

```

```ruby
ActionMailer::Base.smtp_settings = {
  address: 'smtp.beget.com',
  port: 465,
  user_name: 'admin@email.com',
  password: 'password',
  authentication: :login,
  ssl: true,
  tls: true,
  enable_starttls_auto: false,
  openssl_verify_mode: 'none'
}

# 测试发送
ActionMailer::Base.mail(
  from: 'admin@email.com',
  to: 'admin@email.com',
  subject: '来自 Rails 的测试',
  body: '测试消息'
).deliver_now

```

这会导致清晰的错误文本

---

_[View the full topic](https://meta.discourse.org/t/mail-is-not-sending-after-the-latest-update/378784)._
