Can only see plain text emails. HTML email has a blank body

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 14.0.3
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.1): 7.2

The issue you are facing:

Mail is not showing body of email. If the email is plain text i can see it. Seems to be after i enable a self signed SSL certificate.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

Level	App	Message	Time
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:15:37+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:15:34+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:15:08+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:15:00+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:13:52+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:13:14+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:10:21+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:10:19+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:10:00+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:09:58+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:09:58+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:09:56+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:09:35+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T15:09:15+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T14:21:05+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T14:21:01+0000
Error	mail	Creating account failed: Server denied authentication.	2018-10-29T14:18:22+0000
Error	mail	Creating account failed: Server denied authentication.	2018-10-29T14:18:05+0000
Error	index	TypeError: Argument 7 passed to OCA\Mail\Controller\PageController::__construct() must be of the type string, null given	2018-10-29T14:17:55+0000
Error	index	TypeError: Argument 7 passed to OCA\Mail\Controller\PageController::__construct() must be of the type string, null given	2018-10-29T14:16:30+0000
Error	mail	Creating account failed: Server denied authentication.	2018-10-29T14:16:19+0000
Error	mail	Creating account failed: Server denied authentication.	2018-10-29T14:15:59+0000
Error	mail	Creating account failed: Server does not support TLS connections.	2018-10-29T14:04:54+0000
Error	mail	Creating account failed: Server denied authentication.	2018-10-29T14:04:42+0000
Error	mail	Creating account failed: Server denied authentication.	2018-10-29T14:04:39+0000
Error	mail	Creating account failed: Server denied authentication.	2018-10-29T14:04:20+0000
Error	mail	Creating account failed: Error connecting to SMTP server.	2018-10-29T14:04:05+0000
Error	index	TypeError: Argument 3 passed to OCA\Mail\Controller\FoldersController::sync() must be of the type string, null given, called in /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 166	2018-10-29T14:03:06+0000
Error	index	TypeError: Argument 3 passed to OCA\Mail\Controller\FoldersController::sync() must be of the type string, null given, called in /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 166	2018-10-29T14:02:36+0000
Error	index	TypeError: Argument 3 passed to OCA\Mail\Controller\FoldersController::sync() must be of the type string, null given, called in /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 166	2018-10-29T14:02:15+0000
Error	mail	Updating account failed: Server denied authentication.	2018-10-29T14:00:31+0000
Error	mail	Updating account failed: Server denied authentication.	2018-10-29T14:00:18+0000
Error	mail	Updating account failed: Server denied authentication.	2018-10-29T13:59:48+0000
Error	mail	Updating account failed: Server denied authentication.	2018-10-29T13:59:34+0000
Error	mail	Updating account failed: No password provided.	2018-10-29T13:59:00+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T13:56:31+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T13:55:02+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T13:54:57+0000
Error	PHP	Undefined index: externalConnectable at /var/www/html/nextcloud/apps/ojsxc/templates/settings/personal.php#36	2018-10-29T13:54:47+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:50:48+0000
Error	index	TypeError: Argument 7 passed to OCA\Mail\Controller\PageController::__construct() must be of the type string, null given	2018-10-29T13:49:19+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:48:05+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:48:05+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:48:04+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:48:04+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:48:04+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:48:04+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:48:04+0000
Error	index	TypeError: Argument 2 passed to OCA\Mail\Http\AttachmentDownloadResponse::__construct() must be of the type string, null given, called in /var/www/html/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 266	2018-10-29T13:48:04+0000



The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'oc7uzn5dps2c',
  'passwordsalt' => '-----------',
  'secret' => '----------------------',
  'trusted_domains' => 
  array (
    0 => 'LOCALIP',
    1 => 'EXTERNAL IP',
  ),
  'datadirectory' => '/media/data/data',
  'dbtype' => 'mysql',
  'version' => '14.0.3.0',
  'overwrite.cli.url' => 'https://IP-ADDRESS',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextclouduser',
  'dbpassword' => '------------',
  'installed' => true,
  'mail_from_address' => 'tech',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => '-------------------',
  'mail_smtphost' => '------------------------',
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE