79205360

Date: 2024-11-19 23:37:04
Score: 0.5
Natty:
Report link

I just made a similar experience, with an important BUT: Emails are sent from localhost when I use Mail:: (and received on the other side), epsecially when triggered from a cronjob or php artisan command

Mail::to($portfolio->getUser()->email)->send(new DailyMailing($body));

BUT: when I use ->notify() as for example on the verify email which is triggered from the frontend,

Route::post('/email/verification-notification', function (Request $request) {
    $request->user()->sendEmailVerificationNotification();
    return back()->with('message', 'Verification link sent!');
})->middleware(['auth', 'throttle:6,1'])->name('verification.send');

I get no error but neither see no mail (it works with mailtrap). Next check would be if a different hosting gives the same issue. I am still not yet sure if it's a clear issue with the mailserver or something codebased like Inertia (because Mail:: triggered from PHP artisan works)

Reasons:
  • RegEx Blacklisted phrase (1): I get no error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Canelo Digital