Laravel 7 Tutorial - Send Email Using Gmail

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

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

  • @arifdevcoding
    @arifdevcoding 3 года назад +2

    no one, literally no one told me that I have to enable the option in gmail. Now I am saved. Salute!!!

  • @latlov
    @latlov 4 года назад +1

    2:30 setup gmail to allow Laravel connection (less secure apps)
    3:47 Email settings in .env file

  • @user-bx3op7nl4c
    @user-bx3op7nl4c 4 года назад +3

    This is the correct configuration of smt gmail! Thank you so much you save me heheh! Subscribed 👍

  • @shahzaibanwar5211
    @shahzaibanwar5211 4 года назад +1

    Connection could not be established with host smtp.googlemail.io :stream_socket_client(): unable to connect to tcp://smtp.googlemail.io:587 (No connection could be made because the target machine actively refused it. )

  • @soylasnoches
    @soylasnoches 2 года назад

    the best tutorial for this issue
    thank you sir

  • @varshaghanghas
    @varshaghanghas 2 года назад

    Hi, as now "less secure app" option has been disabled by google so how can I send email using smtp now. Please also make a video on send email from office 365 or IMAP/POP.

  • @wenga.1633
    @wenga.1633 4 года назад

    hi your tutorial is great.. im just curious because im new in coding. what if the email that you need to send the mail to, comes from the data that was recently saved in database? thank u i. advance..

  • @guidocaseres4466
    @guidocaseres4466 4 года назад +1

    thanks! i finally could send an email with laravel :)

  • @mukmukyuen8564
    @mukmukyuen8564 4 года назад +1

    thank you! you save my life. lol. I can use this in the Laravel scheduler as well

  • @kundan502
    @kundan502 3 года назад +1

    Great tutorial man. You just earned a sub. Bravo!

  • @freddymf602
    @freddymf602 4 года назад

    Muchas gracias!! Muy completo el tutorial.!

  • @jintuthomas6766
    @jintuthomas6766 3 года назад

    i got an error "Connection could not be established with host smtp.googlemail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number" what will do

  • @carloscapitao801
    @carloscapitao801 4 года назад +1

    altamente funcional... e como posso altera o titulo Nome Laravel que esta no email?

  • @sujaytank16595
    @sujaytank16595 4 года назад

    Thank you, boss, it is working and keep posting such type videos

  • @aliadnanasim4420
    @aliadnanasim4420 3 года назад

    wow brother what a way to teach thank u very much

  • @mazharulalam3885
    @mazharulalam3885 4 года назад

    bro i m trying in post method. all is well about post method but an error occurred. saying that
    {message: "Array to string conversion", exception: "ErrorException",…}
    message: "Array to string conversion"
    exception: "ErrorException"
    file: "E:\web documents\xamp PHP\htdocs\portfolio\app\Mail\ContactMail.php"
    line: 24
    trace: [{file: "E:\web documents\xamp PHP\htdocs\portfolio\app\Mail\ContactMail.php", line: 24,…}

  • @aliriomiguel
    @aliriomiguel 4 года назад +1

    So... This helped me a lot. But you should use a Controller instead that a function inside the routes file.
    This was helpfull though

  • @flashtube4399
    @flashtube4399 4 года назад

    i get this error Connection could not be established with host smtp.googlemail.com

  • @mdjannatussaiyem3538
    @mdjannatussaiyem3538 4 года назад

    Thank you sooooooooooo much.. It was very helpful

  • @giacomodimichele1791
    @giacomodimichele1791 3 года назад

    hi! how can i change "laravel" when i receive the email in gmail

  • @tradewithtony
    @tradewithtony 4 года назад

    Thanks! I made it send email from Laravel application

  • @DevelopmentKit
    @DevelopmentKit 3 года назад

    How can i configure user email dynamical?

  • @narayandhungana9454
    @narayandhungana9454 4 года назад

    Class 'app\Mail\TestMail' not found with fatalthrowable error

  • @noreplyskmook7079
    @noreplyskmook7079 4 года назад

    InvalidArgumentException
    Mailer [] is not defined.
    please help

  • @hoangquang7176
    @hoangquang7176 4 года назад +1

    Cannot send message without a sender address

  • @FujimaruR
    @FujimaruR 3 года назад

    thank you very much,, you save my day :)

  • @MusicandGame23
    @MusicandGame23 4 года назад

    Can you tell me how to send mail with Register form ??

  • @jowinlinguete9935
    @jowinlinguete9935 4 года назад

    sir where did you get the mail_username and mail_password

  • @yannmarchand6516
    @yannmarchand6516 4 года назад

    Hi, Im using octoberCMS and I get that error when I try to send a mail
    Expected response code 250 but got code "550", with message "550 5.7.1 Relaying denied
    anyone please help !

    • @Andredy89
      @Andredy89 4 года назад

      delete October and use clean Laravel

  • @eidm5715
    @eidm5715 4 года назад

    Images are not shown in gmail. Can you give me a hint on that. Thanks

  • @ennkaybee24
    @ennkaybee24 4 года назад

    Connection could not be established with host smtp.googlemail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
    failed tried diff smtp for .env file also didnt work same coming for Gmail , sometimes SSL failed, STARTTLS etc etc comes

  • @alielzahaby3315
    @alielzahaby3315 4 года назад

    good tutorial dude, thank you

  • @gatoanonimo9664
    @gatoanonimo9664 4 года назад

    Congratulations on the tutorial, but I have a query.
    Is it correct to configure the mail detail in the route file?

    • @herdi4156
      @herdi4156 3 года назад

      u can configure the mail detail in contoller.. this video just for example (hardcore)

  • @dubeshshrestha2159
    @dubeshshrestha2159 3 года назад

    Thank you it works...

  • @DiamantineRakib
    @DiamantineRakib 4 года назад

    syntax error, unexpected 'Mail' (T_STRING)

  • @praveensharma5183
    @praveensharma5183 3 года назад

    Sir ssl operation failed with code1 error aa rahi hai

  • @kiriamparedes7174
    @kiriamparedes7174 4 года назад

    Please someone help, i got this error and i don't know why
    stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

    • @SurfsideMedia
      @SurfsideMedia  4 года назад

      This error comes because of antivirus so pause your antivirus and run again

    • @Dominiclee12
      @Dominiclee12 4 года назад

      @@SurfsideMedia Thanks it's working now

  • @jkbullitt8986
    @jkbullitt8986 4 года назад

    Excellent!!

  • @monsefm5177
    @monsefm5177 4 года назад

    Thanks good lesson

  • @mdnurullah9882
    @mdnurullah9882 3 года назад

    how to send zip file to gmail?

  • @cle58tv75
    @cle58tv75 4 года назад

    Did anyone encouter this "Connection could not be established with host smtp.googlemail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed" ????

    • @mahaksrivastava132
      @mahaksrivastava132 4 года назад +1

      If you using Larvel 7 then in your .env file replace
      MAIL_MAILER=smtp
      MAIL_HOST=smtp.mailtrap.io
      MAIL_PORT=2525
      MAIL_USERNAME=null
      MAIL_PASSWORD=null
      MAIL_ENCRYPTION=null
      MAIL_FROM_ADDRESS=null
      MAIL_FROM_NAME="${APP_NAME}"
      with this
      MAIL_DRIVER=smtp
      MAIL_HOST=smtp.gmail.com
      MAIL_PORT=587
      MAIL_USERNAME=your_email_id@gmail.com
      MAIL_PASSWORD=Your email password
      MAIL_ENCRYPTION=tls

    • @just_the_job
      @just_the_job 4 года назад

      @@mahaksrivastava132 This works 100% in laravel 6 also. Many thanks

  • @sumaname1058
    @sumaname1058 4 года назад

    I got this error
    Connection could not be established with host smtp.gmail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
    If anyone have done this let me know

    • @kiriamparedes7174
      @kiriamparedes7174 4 года назад

      i got the same error, i don't know why

    • @SurfsideMedia
      @SurfsideMedia  4 года назад

      Disable the antivirus for a while and run this code again

  • @nagaraju4378
    @nagaraju4378 4 года назад

    Nice

  • @lady3286
    @lady3286 4 года назад

    thank you so much

  • @mytech7166
    @mytech7166 4 года назад

    Error
    Class 'mail' not found
    localhost:8000/send-mail

  • @mahmoudakoobah5505
    @mahmoudakoobah5505 4 года назад

    Great

  • @csvn4816
    @csvn4816 4 года назад

    the from-email-adresse is wrong, it is always equal to-email

  • @arturomunoz2724
    @arturomunoz2724 3 года назад

    Se merece, si funciona (Y)

  • @yamilcoloma6677
    @yamilcoloma6677 4 года назад

    thanks man

  • @abwpro2011
    @abwpro2011 4 года назад

    error Array to string conversion

  • @wahyuprayogo5837
    @wahyuprayogo5837 4 года назад

    thank you

  • @emilianocaballero7013
    @emilianocaballero7013 4 года назад

    ErrorException
    Array to string conversion

  • @junnardrivera2765
    @junnardrivera2765 4 года назад

    No email receive sir

    • @SurfsideMedia
      @SurfsideMedia  4 года назад

      Watch again this video and Check the code and settings

  • @mazharulalam3885
    @mazharulalam3885 4 года назад

    status 500

  • @riteshprajapati5512
    @riteshprajapati5512 4 года назад

    Cannot send message without a sender address