Laravel 5.8 Tutorial From Scratch – e19 – Handling a Contact Form Using a Laravel Mailable



Having a contact form where a user can submit their contact request is a very common thing in today’s modern websites. Follow along as we add a contact form and use a Mailable to send an email.

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

Resources
Course Source Code

Hit us up on Twitter with any questions or comments @codertape (

About This Course

Ready to get started on your path to Laravel Artisan? In this series, we are breaking down all of the basics of Laravel to get you comfortable using the world’s most popular PHP framework. Let’s get started!

Nguồn: https://akihito-shigeno.com

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

  • Could you please share the code along the videos?

    Maurizio Calarese May 27, 2020 3:19 am Reply
  • What does trying to access array offset on value of type null means

    Anuoluwapo David May 27, 2020 3:19 am Reply
  • How to solve this error
    "Swift_TransportException

    Cannot send message without a sender address"

    Mustafa Taeb May 27, 2020 3:19 am Reply
  • Cannot send message without a sender address << I'm getting this error

    Cedric Labrador May 27, 2020 3:19 am Reply
  • awesome video so helpful

    Haseeb Hussain May 27, 2020 3:19 am Reply
  • Can you do a Laravel Contract tutorial? All the other tutorials are in a language other than English.

    Shashwat Singh May 27, 2020 3:19 am Reply
  • plz i need a help when i send message i get an error :
    Cannot send message without a sender address

    my next getaway May 27, 2020 3:19 am Reply
  • Thank you so much, it's been really helpful !

    Bruno Moyse May 27, 2020 3:19 am Reply
  • when I try to send mail I get this error over and over .. "Cannot send message without a sender address " .
    I set up all correctly and (using mailtrap) I am using Laravel 7.0.2 . If you dont mind can you figure it out for me.. Thank You.

    Delvin Duel May 27, 2020 3:19 am Reply
  • thanks alot it worked for me

    onyango ishmail May 27, 2020 3:19 am Reply
  • The message are only shown in mail trap not in our gmail..

    Gagan Bhujel May 27, 2020 3:19 am Reply
  • i have problem :

    Swift_TransportException

    Cannot send message without a sender address

    pls help me

    PutraIB LIVE May 27, 2020 3:19 am Reply
  • i have this error
    i restarted my server and no result
    Swift_TransportException

    Cannot send message without a sender address

    Dina Essam May 27, 2020 3:19 am Reply
  • i still cant believe these lessons are free

    Sammy Sosa May 27, 2020 3:19 am Reply
  • you have a voice of tony stark

    Anirban Roy May 27, 2020 3:19 am Reply
  • Great video but how can I receive the message at my email, for example info@mydomain.com ???

    Alan Rodriguez May 27, 2020 3:19 am Reply
  • i had a problem when sending mail "Cannot send message without a sender address" any help please

    mos saad May 27, 2020 3:19 am Reply
  • How to do auto import class like phpstorm but using Visual Studio Code?

    Robby Alvian Jaya Mulia May 27, 2020 3:19 am Reply
  • please make a video on how to take database backups within laravel app. right from withing a laravel app on button click.

    Ayaz Amin May 27, 2020 3:19 am Reply
  • it worked on local host but gets error when i upload it to server plz help …

    Bibek Shrestha May 27, 2020 3:19 am Reply
  • Awesome video man. Quite question over here, tho.

    Will I receive an actual Email at the 'test@test.com' email if I changed it for a real email?

    Cause I tried and I don't. I keep receiving it only on mailtrap.

    Raul Alfonzo May 27, 2020 3:19 am Reply
  • help Driver [smtp.smtp] not supported. ………for email sendind

    Jagtar Singh May 27, 2020 3:19 am Reply
  • Driver [smtp.smtp] not supported.

    Jagtar Singh May 27, 2020 3:19 am Reply
  • sir when i am submitting the contact form i am getting the same page and my mail box is showing empty..can you please give me the solution

    Rabbi Mahmud May 27, 2020 3:19 am Reply
  • Text input fields like name and email are working fine for me. However, when it comes to a dropdown list, how can I get the selected value to my mailtrap inbox? Any help would me much appreciated.

    Mohamed Ilham May 27, 2020 3:19 am Reply
  • Bravo!

    Roman Simonenko May 27, 2020 3:19 am Reply
  • My contact form isnt working because when i my website i get a error with contact.create is not here

    Dragon Jqrako May 27, 2020 3:19 am Reply
  • it works. thank you to teach how to send email.

    Yong Yee AhSoh May 27, 2020 3:19 am Reply
  • Upon clicking Send Message, got Laravel error: "Swift_TransportException (530) Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required"

    I doubled checked that i had everything setup correctly, like Victor showed, in the video, and all was correct for me. Only after doing an online search, found this at stackoverflow (https://stackoverflow.com/questions/48341078/expected-response-code-250-but-got-code-530-with-message-530-5-7-1-authentic ): run 'php artisan config:cache'. This command worked for me. I was now able to send the email to mailtrap.io

    distantstarrr May 27, 2020 3:19 am Reply
  • Awesome tutorial! But can you please show us how we can clear on submit the inputs and show a notification that tells the user that the form successfull has been submitted WITHOUT reloading the site? (jQuery or vueJS)

    Sven Budak May 27, 2020 3:19 am Reply
  • Great tutorial,
    There's a browser extension called "form filler" it's very helpful to fill any inputs with dummy data it also fills the inputs according to their type (email, password, etc..) it will save you a lot of time in general when testing forms.

    Ayman Mohamed May 27, 2020 3:19 am Reply
  • Thanks a lot!

    Lily Ben May 27, 2020 3:19 am Reply

Leave a Reply

Your email address will not be published. Required fields are marked *