20 hours ago, DisposableHero said:
EMAIL SETTINGS # Look at the available mail configs in config/mail.php # Also refer to the Laravel docs here: https://laravel.com/docs/8.x/mail MAIL_DRIVER=‘smtp’ MAIL_FROM_NAME=‘Your VA Name maybe’ MAIL_FROM_ADDRESS=‘noreply@yoursite.com’ // MAKE A NEW EMAIL WITH HOSTINGER MAIL CONTROL PANEL AND USE IT HERE MAIL_HOST=‘smtp.hostinger.es’ MAIL_PORT=587 MAIL_ENCRYPTION= MAIL_USERNAME=‘noreply@yoursite.com’ // SAME EMAIL USED ABOVE MAIL_PASSWORD=‘password for that email’
I think this will work
You are sending email so you need smtp and outbound port …
If above does not work, try
MAIL_ENCRYPTION=‘tls’
I am making a record myself of a pilot to test.
We are three administrators and the email does not reach any of the three. If that probe MAIL_ENCRYPTION = ‘tls’ and it doesn’t work either
I copied a part of the LOG, and from the registration request the LOG puts this:
[2021-04-14 22:50:03] prod.INFO: Migrations available: 0
[2021-04-14 22:50:18] prod.INFO: User MDN0111 state changing from Pending to Active
[2021-04-14 22:50:18] prod.INFO: NotificationEvents::onUserStateChange: New user state=1
[2021-04-14 22:50:18] prod.EMERGENCY: Error emailing user, MDN0111=XXXXXX@yahoo.es, error=Mailer [mail] is not defined.
[2021-04-14 22:54:04] prod.INFO: Set pilot ID for user 33 to 111
[2021-04-14 22:54:04] prod.INFO: NotificationEvents::onUserRegister: MDN0111 is Pending, sending active email
[2021-04-14 22:54:04] prod.EMERGENCY: Error emailing admin (XXXXXXX@mundoairlines.com). Error=Mailer [mail] is not defined.
[2021-04-14 22:54:04] prod.EMERGENCY: Error emailing admin (XXXXXX@gmail.com). Error=Mailer [mail] is not defined.
[2021-04-14 22:54:04] prod.EMERGENCY: Error emailing admin (XXXXXX@miscorreos.net). Error=Mailer [mail] is not defined.
[2021-04-14 22:54:04] prod.EMERGENCY: Error emailing user, MDN0111=XXXXXX@yahoo.es, error=Mailer [mail] is not defined.
[2021-04-14 22:54:04] prod.INFO: User registered: {“id”:33,“pilot_id”:111,“name”:“ManoloCaracol”,“email”:“XXXXXX@yahoo.es”,“airline_id”:“1”,“rank_id”:“1”,“country”:“es”,“home_airport_id”:“EDDT”,“curr_airport_id”:“EDDT”,“last_pirep_id”:null,“flights”:0,“flight_time”:0,“transfer_time”:0,“avatar”:null,“timezone”:“GMT”,“status”:0,“state”:0,“toc_accepted”:true,“opt_in”:true,“active”:null,“last_ip”:null,“created_at”:“2021-04-14T22:54:04.000000Z”,“updated_at”:“2021-04-14T22:54:04.000000Z”,“deleted_at”:null,“journal”:{“id”:35,“ledger_id”:null,“type”:“1”,“balance”:{“App\Support\Money”:“€0,00”},“currency”:“EUR”,“morphed_type”:“App\Models\User”,“morphed_id”:“33”,“created_at”:“2021-04-14T22:54:04.000000Z”,“updated_at”:“2021-04-14T22:54:04.000000Z”},“rank”:{“id”:1,“name”:“Piloto IFR”,“image_url”:“public/assets/img/ranks/1.png”,“hours”:0,“acars_base_pay_rate”:“50.00”,“manual_base_pay_rate”:“20.00”,“auto_approve_acars”:null,“auto_approve_manual”:null,“auto_promote”:true,“auto_approve_above_score”:“0”,“auto_approve_score”:null,“created_at”:null,“updated_at”:“2021-04-14T18:28:01.000000Z”},“airline”:{“id”:1,“icao”:“MDN”,“iata”:“MDN”,“name”:“MundoAirlines VA”,“country”:“es”,“logo”:“/public/assets/img/logo.png”,“active”:true,“total_flights”:0,“total_time”:0,“created_at”:“2021-04-13T14:14:45.000000Z”,“updated_at”:“2021-04-13T16:36:09.000000Z”}}
[2021-04-14 22:54:15] prod.INFO: Migrations available: 0
[2021-04-14 22:55:09] prod.INFO: User MDN0111 state changing from Pending to Active
[2021-04-14 22:55:09] prod.INFO: NotificationEvents::onUserStateChange: New user state=1
[2021-04-14 22:55:09] prod.EMERGENCY: Error emailing user, MDN0111=XXXXXX@yahoo.es, error=Mailer [mail] is not defined.