در حال بارگذاری ...

Configuring Postmark Driver0:00

Laravel 5.8 now ships with driver support for Postmark, which is really nice because that's what I personally use for Laracasts. So let me show you how this works. I'll quickly create a server. And we'll grab the API key. And now back in my editor, within the .env file, we're going to set our mail driver to be Postmark. And next I need to specify the Postmark token. And we'll paste that in. The only remaining step is to pull in two dependencies that we need.

Installing Required Dependencies0:29

And we'll paste that in. The only remaining step is to pull in two dependencies that we need. Now you don't have to memorize these, you can find them in the documentation. We'll first pull in the Postmark transport. And then finally, for any of the drivers, you need to pull in Guzzle. You can find it here. So we'll do that one as well. And that's it. We're all set to go. So you can see behind the scenes I've set up a dummy mailable here, AccountDeleted.

Sending and Verifying Email0:49

We're all set to go. So you can see behind the scenes I've set up a dummy mailable here, AccountDeleted. So let's go ahead and send that to myself, php artisan tinker, and we'll send a mail to myself. New app mail AccountDeleted. All right, that should do it. So if I now switch back to Postmark, I can see I've sent one mail. And if we switch to the activity tab, here we go. So it's currently processing. I will give the page a refresh.

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟