Forum

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

New Discussion

Can not send invoices by email using gmail as sender...

Juan Carlos Chacon   ( User )

Commented 4 months ago

I checked every point with the online support but everything looks fine. The problem came at the time i click send invoice by email, the pop up window stays there but nothing happens... the option ¨mark as sent ¨ is not activated for selection also.....

Elizabeth Wotawa   ( User )

Commented 1 week ago

Hi Juan Carlos,

A spinner that never finishes means the SMTP connection is failing — the
request times out before Akaunting can mark the invoice as sent. Two causes
account for almost all Gmail cases:

1. Gmail no longer accepts your normal account password. You must create an
App Password (Google Account > Security > 2-Step Verification > App
passwords) and use that 16-character value as the SMTP password.

2. The settings must be exactly:
Host: smtp.gmail.com
Port: 587
Encryption: TLS (or port 465 with SSL)
Username: your full Gmail address
Password: the App Password
From Address: the same Gmail address — Gmail rejects a different sender.

Set these in Settings > Company > Email (or in .env if you prefer):
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_ENCRYPTION=tls
[email protected]
MAIL_PASSWORD=your-app-password
[email protected]

After changing them:
php artisan cache:clear
php artisan config:clear

Also check that your host does not block outgoing port 587 — many shared
hosts do. Test with:
telnet smtp.gmail.com 587

The exact SMTP error is written to storage/logs/laravel.log — please post the
last lines from there if it still hangs.

Please login or register to leave a response.

Showing 1 to 2 of 2 discussions