Skip to content

SMTP mailtrap error on send if configure MAIL_FROM_ADDR #17491

@itamarperdomo

Description

@itamarperdomo

I setup mailtrap configuration and always gives error if i changed MAIL_FROM_ADDR, and if i just leave comment does not log anything and reports that "mail was send".. in resume no matter i try never send anything but it reports that was send the mail .. this is my setup

Snipe-IT version: v8.2.1 build 19068 (g6ca49a20c)
PHP Version: 8.3.23
Laravel Version: 11.44.1
Mail From Address: smtp@mailtrap.io
Mail Reply-To Address: smtp@mailtrap.io
Table Storage:localStorage

Problem is that since in current configuration .env configuration I changed MAIL_ variables to mailtrap integrations

MAIL_MAILER=smtp
MAIL_HOST=live.smtp.mailtrap.io
MAIL_PORT=587
MAIL_USERNAME=api
MAIL_PASSWORD=<akypaikey>

The i clear cache and cofig and recached config, so try to send test email and i got an UI error but no log error

 Mail could not be sent.
No additional error message provided. Check your mail settings and your app log.

This will attempt to send a test mail to smtp@mailtrap.io.

Try to run the artisan command php artisan config:show mail for mail and gives me this:

  mail ....................................................  
  default ............................................ smtp  
  mailers ⇁ smtp ⇁ transport ......................... smtp  
  mailers ⇁ smtp ⇁ host ............. live.smtp.mailtrap.io  
  mailers ⇁ smtp ⇁ port ............................... 587  
  mailers ⇁ smtp ⇁ username ........................... api  
  mailers ⇁ smtp ⇁ password  //////akpikeyher//////////////  
  mailers ⇁ smtp ⇁ timeout ............................. 30  
  mailers ⇁ smtp ⇁ encryption ......................... tls  
  mailers ⇁ smtp ⇁ verify_peer ....................... true  
  mailers ⇁ ses ⇁ transport ........................... ses  
  mailers ⇁ postmark ⇁ transport ................. postmark  
  mailers ⇁ resend ⇁ transport ..................... resend  
  mailers ⇁ sendmail ⇁ transport ................. sendmail  
  mailers ⇁ sendmail ⇁ path ..... /usr/sbin/sendmail -bs -i  
  mailers ⇁ log ⇁ transport ........................... log  
  mailers ⇁ log ⇁ channel ............................ null  
  mailers ⇁ array ⇁ transport ....................... array  
  mailers ⇁ failover ⇁ transport ................. failover  
  mailers ⇁ failover ⇁ mailers ⇁ 0 ................... smtp  
  mailers ⇁ failover ⇁ mailers ⇁ 1 .................... log  
  mailers ⇁ roundrobin ⇁ transport ............. roundrobin  
  mailers ⇁ roundrobin ⇁ mailers ⇁ 0 .................. ses  
  mailers ⇁ roundrobin ⇁ mailers ⇁ 1 ............. postmark  
  mailers ⇁ mailgun ⇁ transport ................... mailgun  
  from ⇁ address ......................... smtp@mailtrap.io  
  from ⇁ name ........................................ null  
  markdown ⇁ theme ................................ default  
  markdown ⇁ paths ⇁ 0 ........ resources/views/vendor/mail  
  reply_to ⇁ address ..................... smtp@mailtrap.io  
  reply_to ⇁ name .................................... null

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions