nextcloud / nextcloud/mail

Sending an email is not possible if a sent mailbox is not configured

Open
#10,546 40 comments 0 reactions 1 assignee View on GitHub

@hamza221 is already working on this.

Since Jun 11, 2026.

1. to develop bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. create a NC/Mail account hosted at OVH with automatic IMAP/SMTP settings
  2. create a new mail using this mail account
  3. send this new mail
Expected behavior

The mail is sent to the recipient(s)

Actual behavior

1st a popup on the right says the mail is sent, then after a few seconds another pop up says it could not be sent.
The mail remains in the Outbox.

Mail app version

3.7.9

Nextcloud version

28.0.7 Enterprise

Mailserver or service

OVH

Operating system

Linux 5.15.0-122-generic x86_64

PHP engine version

PHP 8.2

Nextcloud memory caching

No response

Web server

None

Database

None

Additional info

The NC instance is hosted by IONOS as a "Managed Nextcloud". I can't upgrade NC nor any app.

When I create another mail account hosted for instance at hostinger, everything works fine.

I receive mails delivered to this OVH mail account in NC/Mail.

This is not a matter of OVH mail password.

When I configure the exact same OVH email account in thunderbird, everything works fine.

I'm not sure the following error is related to this bug:

Exception
OCA\Mail\Controller\DraftsController::update(): Argument #2 ($accountId) must be of type int, null given, called in /var/www/html/lib/private/AppFramework/Http/Dispatcher.php on line 230 in file '/var/www/html/apps/mail/lib/Controller/DraftsController.php' line 157

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.