Laravel has incredible features for sending emails. Let’s create a new mailable with markdown and send it using Mailtrap, an email testing service. Then add that ability to our controller whenever new users get added.

For the best experience, follow along in our interactive school at

Laravel RESTful Controllers

DigitalOcean Referral

About This Course

If you have been looking to learn Laravel, there hasn’t been a better time. The framework reached an important point in its life, with the release of Laravel 6. There has never been more demand for Laravel developers than now. In this series, we are going to get you started in your path to becoming a Laravel Artisan. Let’s get right to it!

Nguồn: https://dorifaucet.com/

Xem thêm bài viết khác: https://dorifaucet.com/cong-nghe/

35 Comments

  • EL BEQQAL YOUSSEF
    Posted July 7, 2020 3:11 am

    You have to add MAIL_FROM_ADDRESS=YOU_EMAIL_ADDRESS for this work in laravel 7, Thanks!

  • Ameer Hamza
    Posted July 7, 2020 3:11 am

    that is cool, but how to use phpMailer in laravel?

  • dzakwanzaky
    Posted July 7, 2020 3:11 am

    you're doing god work!!

  • Milan Pino
    Posted July 7, 2020 3:11 am

    I changed the .env app name, no spaces, saved, restarted serve, refreshed the page, and its not reflecting the change 🙁

  • Hamuda Anfoune
    Posted July 7, 2020 3:11 am

    Awesome, thanks for sharing!

  • Aleko Bongiovanni
    Posted July 7, 2020 3:11 am

    your voice is awesome

  • Алексей Слепцов
    Posted July 7, 2020 3:11 am

    Hello! How to change name of the template of mail ? ('THEME' in mail )

  • Firelord Kushroll
    Posted July 7, 2020 3:11 am

    i have to cache the config every time i alter the .env file, otherwise the changes don't take place.

  • Firelord Kushroll
    Posted July 7, 2020 3:11 am

    thank you very much! great info. I replied to someone below on how to do this with laravel 7's auth scaffolding, works just as yours does.

  • Bharath Sn
    Posted July 7, 2020 3:11 am

    Thanks for tutorials, very much clear on topics. It will be helpful to get a video-wise code in Github.

  • Mlouk
    Posted July 7, 2020 3:11 am

    You make the hard things easy

  • Quy Quyền Quý
    Posted July 7, 2020 3:11 am

    this is only for laravle v5.5 above, if yours is below, errors "Object of class AppMailWelcomeMail could not be converted to string" will be thrown out.

  • NaSri TN
    Posted July 7, 2020 3:11 am

    top

  • Muslimah Sporte
    Posted July 7, 2020 3:11 am

    Hi Coder's

    How to send parameter for message template?

    Thank's

  • Ben Robinson
    Posted July 7, 2020 3:11 am

    How would you implement this to work with laravel UI login scaffolding?

  • khan ali
    Posted July 7, 2020 3:11 am

    Hi coder's tape, There's a problem in Sender's email. It doesn't display the actual sender's email. How to fetch the the sender's email?

  • Ameer ul Islam
    Posted July 7, 2020 3:11 am

    It didn't work and asked me to add sender email. and there was a line in .env file for that so I added a dummy from mail.
    MAIL_FROM_ADDRESS=from@example.com
    then it worked

  • Kh4zy
    Posted July 7, 2020 3:11 am

    This series is awesome! Havnt touched php for years and laravel plus this series makes it a dream! Thank you!

  • erwing Forero
    Posted July 7, 2020 3:11 am

    por que a todos les sirve menos a mi

  • Gracy Norbert
    Posted July 7, 2020 3:11 am

    how to send email via api

  • Noman Ziad
    Posted July 7, 2020 3:11 am

    Fantastic Job ! Happy New Year 🙂

  • Divine Alien
    Posted July 7, 2020 3:11 am

    nice

  • md fayaz
    Posted July 7, 2020 3:11 am

    Hey coder,
    How do i input {{ $message }} in mail???
    Please answer

  • Jezreel
    Posted July 7, 2020 3:11 am

    hi sir can u make a tutorial on how to send a sms notification?

  • Omio Rangsha
    Posted July 7, 2020 3:11 am

    thanks for your exelent tutorial

  • Tiago Oliveira
    Posted July 7, 2020 3:11 am

    Very good. Thanks.

  • Ralph Emerson Almarez
    Posted July 7, 2020 3:11 am

    Can you please create also a course for node with express and react and mongo as db really appreciate i love the way you teach

  • Leonardo Atalla
    Posted July 7, 2020 3:11 am

    this series is gold

  • Reza
    Posted July 7, 2020 3:11 am

    I use Sendgrid. It's good too.

  • Programming with Peter
    Posted July 7, 2020 3:11 am

    Another great one! Been a long time since you uploaded! Don't forget when you go to queues to talk about queued mails too

  • roberto anold
    Posted July 7, 2020 3:11 am

    hey coder's tape can please help the tutorial of implementing the search functionality using ajax

  • DailyBizarreThings
    Posted July 7, 2020 3:11 am

    Just right exactly when I need it.

  • alixcan
    Posted July 7, 2020 3:11 am

    Good to see you back. Thanks for this cool episode.

  • Razva Cos
    Posted July 7, 2020 3:11 am

    Laravel + QUASAR framework tutorials please

  • Henni
    Posted July 7, 2020 3:11 am

    If I send the email to my iPhone and have activated the DarkMode of iOS 13 the email will be dark. What causes this effect and how can I change the design of the email?
    And what can I do to send the email in the background? My website always loads until the email has been sent.
    Thanks for the informative video Victor 🙂

Leave a comment