PHPMailer Update 2022- New Gmail Settings to Send Emails Using Gmail SMTP

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

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

  • @vcoder2025
    @vcoder2025 2 года назад +2

    Thank you very much ! I searched in many videos how to fix my problem (11 videos, 23 articles) but I didn't until I found yours, so keep on your way and good luck

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

      there's Fatal Error on line 51? with how the brace is not supported? how should we change the format now?
      Error: Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:\xampp\htdocs\project\phpmailer\index.php on line 51

  • @angelosampang
    @angelosampang 2 года назад +1

    Thanks bro, you're a lifesaver because I'm making an OTP verification of email for the client side in my school project.

  • @ikouikouikou
    @ikouikouikou Год назад +2

    Thank you very much, I really tried to solve my bug. I was able to solve it thanks to you again

  • @hidt8
    @hidt8 2 года назад +1

    THANK YOU
    I really need that SMTP thing but I can't access the less secure apps on your previous video. This helps me so much.

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

    Thank you so much! This worked except for one thing: the curly brackets around $mail->ErrorInfo on line 51 were giving an error so i changed it to this:
    echo "Message could not be sent. Mailer Error: " . $mail->ErrorInfo;
    But the email sent perfectly thanks!

  • @adaopedro2544
    @adaopedro2544 Год назад +1

    This video was very useful for me. Thanks!

  • @mskemmaroberts
    @mskemmaroberts Год назад +2

    Big up brother. You have just done me well.
    Be blessed

  • @TeresaMiller-it8kf
    @TeresaMiller-it8kf Год назад

    Extremely clear and resolved my credentials errors. Thank you very much!

  • @nimratahir7862
    @nimratahir7862 Год назад +1

    Ya ALLAH give this man more honor and success
    You solved my Problem brother

  • @antunezcarlos
    @antunezcarlos 2 года назад +1

    God Lee!!!!!!!!!!!!!!!!. Man this works from any Platform C, C++, Java Script, PHP. Thank You!!!!!!!!!!!!!!!!!!

  • @jacksamba2033
    @jacksamba2033 2 года назад +2

    thank you very much, I was able to continue my work thanks to you!!!

  • @srgberni
    @srgberni 2 года назад +1

    thanks! got stuck in that same point, now I can test the mail functions :)

  • @mihajlo3102
    @mihajlo3102 Год назад +1

    It works , thanks !

  • @kehindelawal7482
    @kehindelawal7482 Год назад +1

    Thank you Bro. Expert

  • @doud0960
    @doud0960 Год назад +1

    Its 100% working..

  • @gersonmoraes8516
    @gersonmoraes8516 2 года назад +1

    Bro... you are the best.. ty.. 🔝🔝🔝🔝👏👏👏👏❤❤

  • @nitinnarwade4075
    @nitinnarwade4075 2 года назад +1

    Bro you are the real savior... Thanks a million.

  • @evangelistabrahamgreat
    @evangelistabrahamgreat 2 года назад +1

    thanks bro.... it really worked... you saved my day

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

    Thank you so much it was really helpful

  • @zxyn8881
    @zxyn8881 2 года назад +1

    It really works! Thank you so much!

  • @kriziacarissepangan1590
    @kriziacarissepangan1590 2 года назад +1

    Waaah! Amazing! Thanksss!

  • @tewahido2119
    @tewahido2119 2 года назад +1

    thanks bro keep going it's working for me

  • @vickymatharoo4068
    @vickymatharoo4068 2 года назад +1

    Thank you so much brother, god will always bless you. 👏

  • @emilylee277
    @emilylee277 Год назад +1

    You are my angel and hero.

  • @luhoblade1995
    @luhoblade1995 2 года назад +1

    This is a rly helpful video, ty.

  • @oumaimaijroussaoun4120
    @oumaimaijroussaoun4120 2 года назад +1

    Thank you so much for this amazing video

  • @bejaouiakrem5462
    @bejaouiakrem5462 11 месяцев назад +1

    thanks man

  • @mynameispucas1126
    @mynameispucas1126 2 года назад +1

    You are the best

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

    Ohh my Beautiful brother can we sent multiple mails through this .?❤️✨

  • @larsharstadmehus8101
    @larsharstadmehus8101 Год назад +1

    Finally it worked sending an email thanks to following stepts from this tutorial 🙂
    However, whenever I click the index.php file, I send two instead of one mail. Any hints why this is happening? :-)
    I have the exact same code as in your video, except from the user/pwd field, of course... :-)

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  Год назад

      You might be hitting the link twice. Otherwise, there is no such thing that sends 2 emails instead of one

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

      @@BroExperts-Tutorials I tried adding a random number to the subject and found out both mails had the same number.
      That ruled out that I clicked the link twice. Then I look further in the code and could see I had both the "$mail->Send())" AND the "if ( $mail->Send()) {
      echo "Email was sent!";
      } else {
      echo "Something went wrong...";
      }" added to the script. I just eliminated the first one and problem was fixed. Again, thank you so much for this video :-) !

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  Год назад

      I'm glad to know you have fixed the issue..

  • @swastikjainsj
    @swastikjainsj Год назад +1

    Thank you
    Sir

  • @alphamx13
    @alphamx13 2 года назад +1

    Great video, I appreciate it !!

  • @ajinzrathod
    @ajinzrathod 2 года назад +1

    Worked like a charm

  • @alperenozdemir757
    @alperenozdemir757 2 года назад +1

    thanks to you my friend i solved the problem thanks

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  2 года назад

      Subscribe pls for more videos coming on phpmailer and other topics.. thanks

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

    Thank you so much bro

  • @mayadamohamed2199
    @mayadamohamed2199 2 года назад +1

    Thank you very much

  • @senosamuel
    @senosamuel 2 года назад +1

    Thank You, works 100%

  • @GilbertoGonzalez
    @GilbertoGonzalez 2 года назад +1

    NIce Solution! thank you!

  • @muhammadnazwanarrazwa8341
    @muhammadnazwanarrazwa8341 Год назад +1

    Thanks Bro, you save me :))))

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

    finally you saved my day thanks a lot & clear explanation

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

    You solve my problem bro love u 😊😊😊

  • @justinaadu-boahene6499
    @justinaadu-boahene6499 Год назад +1

    Thank you so much.

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

    Thank you!!! love ya!

  • @PhilipRosales-p4m
    @PhilipRosales-p4m Год назад

    Thank you!!

  • @irfanghuori
    @irfanghuori 2 года назад +1

    Thank you bro

  • @richar0001
    @richar0001 2 года назад +1

    thx very much

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

    Hello, do you know if you can use a single app password with multiple php contact forms, or do I need to create an App password for each one ? I need to configure around 30 contact forms with the same GMail address and SMTP... Thanks for your help.

  • @carlosfixon5077
    @carlosfixon5077 2 года назад +1

    Thanks buddy :)

  • @DL-gg3sb
    @DL-gg3sb 2 года назад +1

    Can this method be sent permanently? Now, I am using the token method and the refresh token needs to refresh every day. I don't know how to make this auto refresh token.

  • @storytime7796
    @storytime7796 2 года назад +1

    thank you

  • @Mad_sci-e9e
    @Mad_sci-e9e 2 года назад +1

    so nice

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

    how many emails can send or delivered per day using an account under the workspace subscription as smtp

  • @mohd-obid
    @mohd-obid 2 года назад +1

    Thanks pro

  • @chandrasakthi510
    @chandrasakthi510 2 года назад +1

    Hi bro I'm using app password now works on...but my team told me find alternative solution..? Any alternative solution ...to acess Gmail ...??? Pls tell.

  • @jooryalhamed938
    @jooryalhamed938 2 года назад +1

    Hi, I'm getting SMTP connect() failed. I'm on Windows 10 and I'm using $mail->SMTPSecure = 'ssl' as tls didn't work. Do you know how to solve this issue?

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  2 года назад +1

      There are many cases for the failure of SMTP connection in PHPMailer and lack of SSL is one of that too. There might be a case, that the Open SSL extension is not enabled in your php.ini which is creating the connection problem. So, try to enable the extension=php_openssl.

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

      @@BroExperts-Tutorials Thank you for replying.
      How can I open it?
      I'm really struggling with this problem.

  • @phiayang5952
    @phiayang5952 2 года назад +1

    there's Fatal Error on line 51? with how the brace is not supported? how should we change the format now?
    Error: Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:\xampp\htdocs\project\phpmailer\index.php on line 51

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  2 года назад

      You can follow my new video.. its actually one function belongs to error reporting which you can find at last where I am checking for error.. this function is deprecated you can remove it..

  • @unknown-pp4jr
    @unknown-pp4jr Год назад +1

    Bro .. can't find "Add password"...in Google account

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

    Big up

  • @hacene5447
    @hacene5447 2 года назад +1

    Hello I try the same steps what you did but I don't receive any mails could you help me please ?

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  2 года назад

      Please enable debugging and check what error you are getting...

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

      @@BroExperts-Tutorials I send you an email I would like to contact you in the private for discuss if you want help me I search a solution it's very important for me

  • @okekayo4506
    @okekayo4506 2 года назад +1

    i created the same method as the tutorial said but im getting "Message could not be sent. Mailer Error:" but when i run to other computer it is working what is the problem then? please help me

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

      You must be doing something wrong, if you are coding please check your code.
      My advice is to open a new Gmail account preferably a business one.
      Good luck

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

    I hate the new update it limits the send of emails, you have to replace the app password again to use it. Do you know how to fix it?

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

    do you have to configure xampp?

  • @yongquan5244
    @yongquan5244 2 года назад +1

    Hi, I followed your video closely but I am getting (Message could not be sent. Mailer Error:) I do not know what seems to be the issue :(

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  2 года назад

      Pls enable debugging by calling below function.
      $mail->SMTPDebug = 2;
      And see what error your are getting..

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

      Hi thanks for replying, its telling me authentication failed but i’ve checked my username and password it’s the same.

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

    Google appears to have changed the Security layout again. There is no longer a link called "App passwords". I have not resolved this issue yet.

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

      I figured it out with the help of this video, minute 1:07. You simply need to type "app passwords" into the search bar at the top of the account > security page. ruclips.net/video/-MqVdG9w_lY/видео.htmlsi=_psto-72slqJyDok&t=67

  • @ajitjadhav9040
    @ajitjadhav9040 Год назад +1

    SMTP ERROR: Failed to connect to server: Connection refused (111)
    Still geting error

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

    working but i cannot spoof mail address in "FROM" remain my original address not spoofed one

  • @cyracastillocacho7755
    @cyracastillocacho7755 Год назад +1

    it shows an SMTP connect() failed error

  • @seifusz
    @seifusz 2 года назад +1

    You saved my ass

  • @Raw.404
    @Raw.404 2 года назад +1

    It's not working on me bro even if I followed all steps

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  2 года назад

      What error you are getting ? Pls share

    • @Raw.404
      @Raw.404 2 года назад

      I re do all of the steps but I still get the this result " Message could not be sent. Mailer Error:"

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

    I keep getting 405 error, how can I stop this ?

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

    even this doesnt work now. 😭 jus tried it.

  • @foodev
    @foodev Год назад +1

    Google removed the less secure feature

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  Год назад

      Yes, you are right. I have made a new video with the latest settings of Gmail.
      Here is the link:
      ruclips.net/video/bAdHC2LNbSs/видео.html

  • @vinitsharma4787
    @vinitsharma4787 Год назад +1

    bro now its not working

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  Год назад +1

      May I know what error you are getting?

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

      @@BroExperts-Tutorials No error message on alert is Ok but still not getting mail to the gmail address

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

    Why bother? PHP will doesn't need PHPmailer.

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

    i have mailer error

  • @ahmadmokhtar8175
    @ahmadmokhtar8175 Год назад +1

    not working 8/13/2023

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

    still i am getting error

  •  Год назад

    not work now XD

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  Год назад

      Pls check the latest video on this topic..
      ruclips.net/video/mte7LroYd74/видео.html

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

    this script not working show this error can you please help me (Warning: Illegal string offset 'Invalid address: (From): root@localhost' in D:\xampp\htdocs\phpmailer\index.php on line 51
    M)

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

    please help this is the error that I am getting --- Invalid address: (From): root@localhost

  • @maromesamr4292
    @maromesamr4292 2 года назад +1

    Bro you are the real savior... Thanks a million.

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  2 года назад +1

      Thanks.. Hit subscribe for more videos..

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

      @@BroExperts-Tutorials I am getting one stupid error "smtp error: failed to connect to server: connection timed out (110)".
      Do you have any advice on this?
      Thanks!!

  • @FunLetsGetIt1997-x9p
    @FunLetsGetIt1997-x9p 2 года назад +1

    Thank you so much sir for this great help ☺

  • @andreayoung1185
    @andreayoung1185 2 года назад +1

    Thank you 🤗