Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解
话题已关闭并存档。 如果需要帮助请提出新问题。
已锁定 已存档

Thunderbird 102, SMTP and GMAIL

SuMo Bot 已回复
SuMo Bot

Thunderbird can receive emails correctly (imap) but is unable to send (smtp). Recent problem, no changes to configuration.

Thunderbird 102.2.2 (64-bit) Linux Mint 20 IMAP server config:

 imap.gmail.com:993
 t****.f****@gmail.com
 ssl/tls
 OAuth2

SMTP server config

 smtp.gmail.com:465
 t****.f****@gmail.com
 ssl/tls
 OAuth2

Recent problem, no changes to configuration. Only affects GMAIL (Yahoo works OK). Have deleted and reinstalled TB Have deleted and reinstalled all mail accounts and pw Have cleared DNS cache and treid smtp.googlemail.com (same problem so reset)


Developer error console has following messages immediately aafter an attempted email send:

mailnews.smtp: error { target: TCPSocket, isTrusted: true, name: "ConnectionRefusedError", message: "Network", errorCode: 2152398861, srcElement: TCPSocket, currentTarget: TCPSocket, eventPhase: 2, bubbles: false, cancelable: false, … } bubbles: false cancelBubble: false cancelable: false composed: false composedTarget: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } currentTarget: null defaultPrevented: false defaultPreventedByChrome: false defaultPreventedByContent: false errorCode: 2152398861 eventPhase: 0 explicitOriginalTarget: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } isReplyEventFromRemoteContent: false isSynthesized: false isTrusted: true isWaitingReplyFromRemoteContent: false message: "Network" multipleActionsPrevented: false name: "ConnectionRefusedError" originalTarget: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } returnValue: true srcElement: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } target: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } timeStamp: 0 type: "error" <get isTrusted()>: function isTrusted() <prototype>: TCPSocketErrorEventPrototype { name: Getter, message: Getter, errorCode: Getter, … } SmtpClient.jsm:433:17

   _onError resource:///modules/SmtpClient.jsm:433
   

mailnews.send: Sending failed; The message could not be sent because connecting to Outgoing server (SMTP) smtp.gmail.com failed. The server may be unavailable or is refusing SMTP connections. Please verify that your Outgoing server (SMTP) settings are correct and try again., exitCode=2153066798, originalMsgURI= MessageSend.jsm:335:27

   fail resource:///modules/MessageSend.jsm:335
   _deliveryExitProcessing resource:///modules/MessageSend.jsm:631
   sendDeliveryCallback resource:///modules/MessageSend.jsm:685
   OnStopRunningUrl resource:///modules/MessageSend.jsm:1313
   onerror resource:///modules/SmtpService.jsm:188
   _onError resource:///modules/SmtpClient.jsm:447


Ideas most welcome.

Thunderbird can receive emails correctly (imap) but is unable to send (smtp). Recent problem, no changes to configuration. Thunderbird 102.2.2 (64-bit) Linux Mint 20 IMAP server config: imap.gmail.com:993 t****.f****@gmail.com ssl/tls OAuth2 SMTP server config smtp.gmail.com:465 t****.f****@gmail.com ssl/tls OAuth2 Recent problem, no changes to configuration. Only affects GMAIL (Yahoo works OK). Have deleted and reinstalled TB Have deleted and reinstalled all mail accounts and pw Have cleared DNS cache and treid smtp.googlemail.com (same problem so reset) Developer error console has following messages immediately aafter an attempted email send: mailnews.smtp: error { target: TCPSocket, isTrusted: true, name: "ConnectionRefusedError", message: "Network", errorCode: 2152398861, srcElement: TCPSocket, currentTarget: TCPSocket, eventPhase: 2, bubbles: false, cancelable: false, … } ​bubbles: false ​cancelBubble: false ​cancelable: false ​composed: false ​composedTarget: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } ​currentTarget: null ​defaultPrevented: false ​defaultPreventedByChrome: false ​defaultPreventedByContent: false ​errorCode: 2152398861 ​eventPhase: 0 ​explicitOriginalTarget: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } ​isReplyEventFromRemoteContent: false ​isSynthesized: false ​isTrusted: true ​isWaitingReplyFromRemoteContent: false ​message: "Network" ​multipleActionsPrevented: false ​name: "ConnectionRefusedError" ​originalTarget: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } ​returnValue: true ​srcElement: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } ​target: TCPSocket { host: "smtp.gmail.com", port: 465, ssl: true, … } ​timeStamp: 0 ​type: "error" ​<get isTrusted()>: function isTrusted() ​<prototype>: TCPSocketErrorEventPrototype { name: Getter, message: Getter, errorCode: Getter, … } SmtpClient.jsm:433:17 _onError resource:///modules/SmtpClient.jsm:433 mailnews.send: Sending failed; The message could not be sent because connecting to Outgoing server (SMTP) smtp.gmail.com failed. The server may be unavailable or is refusing SMTP connections. Please verify that your Outgoing server (SMTP) settings are correct and try again., exitCode=2153066798, originalMsgURI= MessageSend.jsm:335:27 fail resource:///modules/MessageSend.jsm:335 _deliveryExitProcessing resource:///modules/MessageSend.jsm:631 sendDeliveryCallback resource:///modules/MessageSend.jsm:685 OnStopRunningUrl resource:///modules/MessageSend.jsm:1313 onerror resource:///modules/SmtpService.jsm:188 _onError resource:///modules/SmtpClient.jsm:447 Ideas most welcome.

所有回复 (3)

Whoa ... Mozilla what are you doing.

So it works and here's what I changed. I went to my SMTP settings ... now for Yahoo.com and Seznam.cz the SMTP profile description is left "blank". For Gmail it is set to "GMail".

So for each account (5 gmail addresses) I entered a unique description name. Thinks, at the time, no idiot would select the smtp profile from the description name ... would they?

Restarted TB and, what would you know, suddenly I can send email! Tell me, surely, TB does not use the description name to identify the SMTP profile to use ... surely not. But then changing the descriptions to a unique name for each account would imply TB is doing just that.

As a retired IT dinosaur I'm shocked and must add: "Name, description, "whatever text" is NOT a robust identification method. Must do better!"

No, I take that all back and offer apologies. I restarted TB and it went back to NOT sending emails! This app has problems!

For completeness here's the pop up msg:

Sending of the message failed. The message could not be sent because connecting to Outgoing server (SMTP) smtp.gmail.com failed. The server may be unavailable or is refusing SMTP connections. Please verify that your Outgoing server (SMTP) settings are correct and try again.

Checked all the settings ... again! and they are correct, as far as I can see. I do wonder why it worked for 2 messages then stopped again.

This question has been locked because the original author has deleted their account. While you can no longer post new replies, the existing content remains available for reference.