Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

SMTP Settings Not Working

Miguel Garcia   ( User )

Commented 11 months ago

Hi everyone, I've recently installed the on premises version of Akaunting and so far everithing is good. The only issue that I have found is that, no matter what settings I use for the SMTP option the system is not able to send any email at all.
I have dig this issue and tested with the SMTP Test Tool from GMass using my credentials from Gmail for SMTP relay and the new App Password. In the test tool from GMass I was able to send a test email and I got this:

```>> Test message
>> --=-mVPn9tSCEUY6cQ6diMm4og==
>> Content-Type: text/html; charset=utf-8
>> Content-Id:
>>
>> Test message
>> --=-mVPn9tSCEUY6cQ6diMm4og==--
>> .
> AUTH PLAIN AG1pZ2FyYmVAZ21haWwuY29tAHR1Y2sgdHNzYyBucnZwIHlwaWc=

Freek Olgers   ( User )

Commented 10 months ago

I have the same problem.

F3K TECH   ( User )

Commented 10 months ago

+1 Using on premise 3.1.14

[email protected] [email protected]   ( User )

Commented 4 days ago

I had the same problem when I installed Akaunting on premises Version 3.1.19 in multiple web hosting with MySQL and PostgreSQL.
When working with the support teams in these web hosts, they confirmed that the EHLO SMTP connection was always passing the localhost configuration instead of the server hostname where I have the email server.

Short change was to

1. Create a copy of the file Config/Mail.php
2. Edit the file Config/Mail.php
3. Update the line 'local_domain'
FROM: 'local_domain' => env('MAIL_EHLO_DOMAIN'),
TO: 'local_domain' => env('MAIL_EHLO_DOMAIN', 'enter your email server hostname or email server IP Address'),
4. Save the changes
5. optional: you might need to clear cache of the akaunting folder to remove any configuration that is saved using SSH command lines:
php artisan config:clear
php artisan cache:clear

This should allow to force the system to always send emails from your default email server hostname. I believe this value can be entered in the database (MySQL or PostgreSQL, but I did not test that yet as I needed to allow send invoices properly to all customers I have)

Hope this helps!

NB: Always save a copy of the updated file. If the changes do not work, you can always revert.
Always take a backup copy of the Akaunting files before updating too as these changed files might revert to the original state

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions