-->
Welcome, Guest
Username: Password: Remember me
Check that your potential issue isn't already confirmed and fixed in the recent releases. A summary of all changes can be found in the Dolibarr Changelogs

TOPIC: Email sending issues

Email sending issues 2 months 1 week ago #34486

  • shoutnet
  • shoutnet's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 12
  • Thank you received: 1
  • Karma: 0

DOLIBARR ENVIRONMENT
- Version: 8.0.0
- Operating System: CentOS 7
- Web Server: Apache
- PHP: 5.6.32
- Database: MySQL
- URL(s): /admin/mails.php?action=test&mode=init#formmailbeforetitle

Upgrade from 7.0.5 to 8.0.0, Email sending no longer working. When click "Send Email" it shows,

This page isn’t working
xxx.xxx.xxx is currently unable to handle this request.
HTTP ERROR 500
The administrator has disabled public write access.

Email sending issues 2 months 1 week ago #34489

  • aljawaid
  • aljawaid's Avatar
  • OFFLINE
  • Moderator
  • Trying to make the source open.
  • Posts: 649
  • Thank you received: 92
  • Karma: 12
Hello, there is no official 7.0.5 version. Unless you meant 7.0.3

Please try updating to 8.0.1 to see if it resolves your issue.

Generally, a 500 error refers to your server. Possibly check with your hosting company too.
Last Edit: 2 months 1 week ago by aljawaid.
The administrator has disabled public write access.

Email sending issues 2 months 1 week ago #34496

  • shoutnet
  • shoutnet's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 12
  • Thank you received: 1
  • Karma: 0
Sorry. my mistake. It is 7.0.3. The mail function worked fine with 7.0.3, but not with 8.0.0.

And I just upgrade to 8.0.1 without luck.

The server i host is my own CentOS 7 server.
The administrator has disabled public write access.

Email sending issues 2 months 1 week ago #34501

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Senior
  • Posts: 73
  • Thank you received: 32
  • Karma: 4
Hi,

Error 500 means problem on the serveur side.
Could you send us the php error log of your server ?
The administrator has disabled public write access.

Email sending issues 2 months 1 week ago #34503

  • shoutnet
  • shoutnet's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 12
  • Thank you received: 1
  • Karma: 0
[Mon Sep 10 12:48:38.533513 2018] [:error] [pid 11763] [client 118.200.231.7:53620] PHP Parse error: syntax error, unexpected '?' in /var/www/domain-erp/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php on line 496, referer: http://erp.mydomain.com/admin/mails.php?action=test&mode=init
The administrator has disabled public write access.

Email sending issues 2 months 1 week ago #34504

  • shoutnet
  • shoutnet's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 12
  • Thank you received: 1
  • Karma: 0
Now i found the problem that for new system to work, I have to upgrade to PHP 7

In PHP 7 we additionally get the ?? operator which rather than indicating extreme confusion which is how I would usually use two question marks together instead allows us to chain together a string of values. Reading from left to right, the first value which exists and is not null is the value that will be returned.

// $a is not set
$b = 16;

echo $a ?? 2; // outputs 2
echo $a ?? $b ?? 7; // outputs 16
This construct is useful for giving priority to one or more values coming perhaps from user input or existing configuration, and safely falling back on a given default if that configuration is missing. It's kind of a small feature but it's one that I know I'll be using as soon as my applications upgrade to PHP 7.
The administrator has disabled public write access.

Email sending issues 2 months 1 week ago #34505

  • aljawaid
  • aljawaid's Avatar
  • OFFLINE
  • Moderator
  • Trying to make the source open.
  • Posts: 649
  • Thank you received: 92
  • Karma: 12
Great so your solution has worked by upgrading the server php version to 7.0?
The administrator has disabled public write access.
Time to create page: 0.101 seconds