Send Email in Laravel Using Gmail SMTP - Mailtrap Tutorial
HTML-код
- Опубликовано: 30 сен 2024
- Are you having a hard time sending emails in Laravel using Gmail SMTP? Don’t look any further - we’ve got you covered. In this video, we explain how to set up Gmail configuration in Laravel and start sending emails immediately.
✅ Configuring Laravel env and mail.php files (0:30)
✅ Generating the app password in Gmail (1:48)
✅ Creating and configuring mailable class (2:52)
✅ Sending emails (4:07)
Learn more about Mailtrap and start for free at 🔗 bit.ly/44MEcwF
📝 For more information on sending and testing emails in Laravel, visit Mailtrap Blog:
🔗 Sending Email in Laravel Using Gmail SMTP bit.ly/3Dg1gbh
🔗 Sending Emails in Laravel - All You Want to Know bit.ly/3MlqNnw
🔗 Laravel Email Testing: Mailtrap vs. Other Options bit.ly/3NTgCHD
Watch other 🎥 Mailtrap videos on Laravel:
▶️ Laravel Tutorial: How Sending Emails in Laravel Works bit.ly/3K1mKfV
▶️ Laravel Email Verification bit.ly/3DgXdeV
Stay tuned!
Subscribe to our RUclips channel and other pages on social media:
Twitter: / mailtrap
Facebook: / mailtrap
TikTok: / mailtrap.io
#mailtrap #laravel #laraveltutorial #laravelcourse #gmail #emails #mailtraptutorial
Thanks to Laravel’s supported drivers and mailable classes, it’s possible to use Gmail SMTP settings to send emails from your Laravel project. In this video, we provided a step-by-step tutorial to help you get started.
Have you used Gmail SMTP to send emails from your app or project? Share your experience in the comments.
Unfortunately, app passwords are no longer available
Hey, they're still available but they've been moved to Google Account settings -> Security -> 2-Step Verification (under 'How you sign in to Google'). You can also use the search bar to find them :D
Hey, thank you for watching and for helping out fellow devs! We appreciate your help 💪
are we don't need to set the controller?
As you can see. Thank you for your interest in our videos!
I dont have this option in my google
Hello there. Which option exactly are you talking about?
Please, let us know as we would like to help you.
Thanks, thanks, thanks!!!
Finally somebody with a complete and really helpfull explanation about it.
Blessings from Venezuela.
Glad it was helpful! Stay tuned to our channel ❤️
thank youuuuuuu veeeeery much
Sending love right back to Morocco! Thank you for being awesome! Subscribe to our channel for more email things!
Is this available for sending password recovery?
It should be.
the app password section no longer appears :(
Thanks for you comment. Here are a few ways to address this situation:
- Check Two-Factor Authentication Settings: Verify if Two-Factor Authentication (2FA) is enabled on your Google account. If so, use your regular Google account password along with the authentication code provided by your 2FA method when configuring the account in your application.
- Review Google Account Security Settings: Go to your Google account settings and review the security settings, especially those related to app access and app-specific passwords. Ensure that you haven't inadvertently disabled access for the application you're trying to configure.
- Contact Support: If you're unable to resolve the issue on your own, consider reaching out to Google support or the support resources provided by the application you're trying to configure. They may be able to provide further assistance or guidance tailored to your specific situation.
Let us know if it worked for you. Good luck!
your have a supersonic memory of your environment
Thank you very much. We appreciate your attention and feedback. Please, stay tuned for more videos to come!
it doesn't work , i do follow you but i receiver error : Request to Mailgun API failed.
have you verified your sending domain with Mailtrap?
do you use the proper email endpoint? It has changed since the video came out.
check our documentation, please.
@@mailtrap. thanks u
I did everything and it doesn't work
The devils is in the details. Try to be more attentive to details.
Thats works for email server too?
Which one specifically?
If you need to know how to send emails in Laravel with any other smtp or api, please, watch our dedicated video "How Sending Emails in Laravel Works": ruclips.net/video/lsna1S8y1vg/видео.html
Thank you very much!!
Always happy to help! Subscribe for more!
nice thank you
Always welcome. Stay in touch for more email content!
I don't have "Select App" and "Select device" dropdown menu. I only have one text filed to type "App name". Why?
Might depend on the Laravel version you use.
Did you fix it
@@jairocastillo8971 No 😕
@@jairocastillo8971 it worked, no need for the menu
@@krzysiekkrzysiek9059 it worked, no need for the menu
thank you it worked
Always welcome! Stay tuned to our channel for more useful info.
not working on live
@jonasborgio7173 in the comments mentioned it works for him.
Please, check for bugs.
works fine thx
Cool. Glad we helped! Stay tuned!