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

Комментарии • 43

  • @mailtrap.
    @mailtrap.  Год назад

    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.

  • @AndreaDEANDREIS
    @AndreaDEANDREIS Месяц назад

    Unfortunately, app passwords are no longer available

    • @ivandjuric3676
      @ivandjuric3676 24 дня назад

      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

    • @mailtrap.
      @mailtrap.  21 день назад +1

      Hey, thank you for watching and for helping out fellow devs! We appreciate your help 💪

  • @rizalefendi6409
    @rizalefendi6409 11 месяцев назад

    are we don't need to set the controller?

    • @mailtrap.
      @mailtrap.  11 месяцев назад

      As you can see. Thank you for your interest in our videos!

  • @giorgiowelov2710
    @giorgiowelov2710 3 месяца назад

    I dont have this option in my google

    • @mailtrap.
      @mailtrap.  3 месяца назад

      Hello there. Which option exactly are you talking about?
      Please, let us know as we would like to help you.

  • @drfcozapata
    @drfcozapata 11 месяцев назад

    Thanks, thanks, thanks!!!
    Finally somebody with a complete and really helpfull explanation about it.
    Blessings from Venezuela.

    • @mailtrap.
      @mailtrap.  11 месяцев назад

      Glad it was helpful! Stay tuned to our channel ❤️

  • @badreddinehdidi5444
    @badreddinehdidi5444 6 месяцев назад

    thank youuuuuuu veeeeery much

    • @mailtrap.
      @mailtrap.  6 месяцев назад

      Sending love right back to Morocco! Thank you for being awesome! Subscribe to our channel for more email things!

  • @ArtLoisEstacio
    @ArtLoisEstacio 9 месяцев назад

    Is this available for sending password recovery?

  • @jaimerodriguez4747
    @jaimerodriguez4747 4 месяца назад

    the app password section no longer appears :(

    • @mailtrap.
      @mailtrap.  4 месяца назад

      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!

  • @greykoff3325
    @greykoff3325 8 месяцев назад

    your have a supersonic memory of your environment

    • @mailtrap.
      @mailtrap.  7 месяцев назад

      Thank you very much. We appreciate your attention and feedback. Please, stay tuned for more videos to come!

  • @huywocker2966
    @huywocker2966 8 месяцев назад

    it doesn't work , i do follow you but i receiver error : Request to Mailgun API failed.

    • @mailtrap.
      @mailtrap.  8 месяцев назад +1

      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.

    • @huywocker2966
      @huywocker2966 8 месяцев назад

      @@mailtrap. thanks u

  • @MICHAELANDRSARDILAROTAVISTA
    @MICHAELANDRSARDILAROTAVISTA 11 месяцев назад

    I did everything and it doesn't work

    • @mailtrap.
      @mailtrap.  11 месяцев назад

      The devils is in the details. Try to be more attentive to details.

  • @kikaximenes813
    @kikaximenes813 9 месяцев назад

    Thats works for email server too?

    • @mailtrap.
      @mailtrap.  9 месяцев назад

      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

  • @ioanabiris3472
    @ioanabiris3472 8 месяцев назад

    Thank you very much!!

    • @mailtrap.
      @mailtrap.  8 месяцев назад

      Always happy to help! Subscribe for more!

  • @hafeezurrehman344
    @hafeezurrehman344 5 месяцев назад

    nice thank you

    • @mailtrap.
      @mailtrap.  5 месяцев назад

      Always welcome. Stay in touch for more email content!

  • @krzysztofr5888
    @krzysztofr5888 Год назад

    I don't have "Select App" and "Select device" dropdown menu. I only have one text filed to type "App name". Why?

  • @khalidalshomrani3564
    @khalidalshomrani3564 10 месяцев назад

    thank you it worked

    • @mailtrap.
      @mailtrap.  10 месяцев назад

      Always welcome! Stay tuned to our channel for more useful info.

  • @Pi-Talk
    @Pi-Talk Год назад

    not working on live

    • @mailtrap.
      @mailtrap.  Год назад

      @jonasborgio7173 in the comments mentioned it works for him.
      Please, check for bugs.

  • @jonasborgio7173
    @jonasborgio7173 Год назад

    works fine thx

    • @mailtrap.
      @mailtrap.  Год назад +1

      Cool. Glad we helped! Stay tuned!