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

แชร์
ฝัง

ความคิดเห็น • 139

  • @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

  • @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!

  • @ikouikouikou
    @ikouikouikou ปีที่แล้ว +2

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

  • @doud0960
    @doud0960 ปีที่แล้ว +1

    Its 100% working..

  • @antunezcarlos
    @antunezcarlos 2 ปีที่แล้ว +1

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

  • @adaopedro2544
    @adaopedro2544 ปีที่แล้ว +1

    This video was very useful for me. Thanks!

  • @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.

  • @TeresaMiller-it8kf
    @TeresaMiller-it8kf ปีที่แล้ว

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

  • @kehindelawal7482
    @kehindelawal7482 ปีที่แล้ว +1

    Thank you Bro. Expert

  • @nimratahir7862
    @nimratahir7862 ปีที่แล้ว +1

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

  • @evangelistabrahamgreat
    @evangelistabrahamgreat 2 ปีที่แล้ว +1

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

  • @mihajlo3102
    @mihajlo3102 ปีที่แล้ว +1

    It works , thanks !

  • @srgberni
    @srgberni 2 ปีที่แล้ว +1

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

  • @mskemmaroberts
    @mskemmaroberts ปีที่แล้ว +2

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

  • @nitinnarwade4075
    @nitinnarwade4075 2 ปีที่แล้ว +1

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

  • @zxyn8881
    @zxyn8881 2 ปีที่แล้ว +1

    It really works! Thank you so much!

  • @jacksamba2033
    @jacksamba2033 2 ปีที่แล้ว +2

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

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  2 ปีที่แล้ว

      Glad go know it helped you (: please subscribe my channel !!

  • @gersonmoraes8516
    @gersonmoraes8516 2 ปีที่แล้ว +1

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

  • @emilylee277
    @emilylee277 ปีที่แล้ว +1

    You are my angel and hero.

  • @giyasahmed5090
    @giyasahmed5090 ปีที่แล้ว

    You solve my problem bro love u 😊😊😊

  • @mayadamohamed2199
    @mayadamohamed2199 2 ปีที่แล้ว +1

    Thank you very much

  • @kriziacarissepangan1590
    @kriziacarissepangan1590 2 ปีที่แล้ว +1

    Waaah! Amazing! Thanksss!

  • @bejaouiakrem5462
    @bejaouiakrem5462 11 หลายเดือนก่อน +1

    thanks man

  • @tewahido2119
    @tewahido2119 2 ปีที่แล้ว +1

    thanks bro keep going it's working for me

  • @hamzasaleem4142
    @hamzasaleem4142 ปีที่แล้ว

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

  • @nawalaljib9284
    @nawalaljib9284 ปีที่แล้ว

    Thank you so much bro

  • @oumaimaijroussaoun4120
    @oumaimaijroussaoun4120 2 ปีที่แล้ว +1

    Thank you so much for this amazing video

  • @yogeshtesting
    @yogeshtesting ปีที่แล้ว

    finally you saved my day thanks a lot & clear explanation

  • @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..

  • @luhoblade1995
    @luhoblade1995 2 ปีที่แล้ว +1

    This is a rly helpful video, ty.

  • @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

  • @vickymatharoo4068
    @vickymatharoo4068 2 ปีที่แล้ว +1

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

  • @senosamuel
    @senosamuel 2 ปีที่แล้ว +1

    Thank You, works 100%

  • @PhilipRosales-p4m
    @PhilipRosales-p4m ปีที่แล้ว

    Thank you!!

  • @ajinzrathod
    @ajinzrathod 2 ปีที่แล้ว +1

    Worked like a charm

  • @mynameispucas1126
    @mynameispucas1126 2 ปีที่แล้ว +1

    You are the best

  • @swastikjainsj
    @swastikjainsj ปีที่แล้ว +1

    Thank you
    Sir

  • @muhammadnazwanarrazwa8341
    @muhammadnazwanarrazwa8341 ปีที่แล้ว +1

    Thanks Bro, you save me :))))

  • @FunLetsGetIt1997-x9p
    @FunLetsGetIt1997-x9p 2 ปีที่แล้ว +1

    Thank you so much sir for this great help ☺

  • @alphamx13
    @alphamx13 2 ปีที่แล้ว +1

    Great video, I appreciate it !!

  • @irfanghuori
    @irfanghuori 2 ปีที่แล้ว +1

    Thank you bro

  • @GilbertoGonzalez
    @GilbertoGonzalez 2 ปีที่แล้ว +1

    NIce Solution! thank you!

  • @mestanislao857
    @mestanislao857 ปีที่แล้ว

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

  • @richar0001
    @richar0001 2 ปีที่แล้ว +1

    thx very much

  • @elmichiapologeta
    @elmichiapologeta 2 ปีที่แล้ว

    Thank you!!! love ya!

  • @storytime7796
    @storytime7796 2 ปีที่แล้ว +1

    thank you

  • @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.

  • @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.

  • @mohd-obid
    @mohd-obid 2 ปีที่แล้ว +1

    Thanks pro

  • @Mad_sci-e9e
    @Mad_sci-e9e 2 ปีที่แล้ว +1

    so nice

  • @andreayoung1185
    @andreayoung1185 2 ปีที่แล้ว +1

    Thank you 🤗

  • @basilioreyes2434
    @basilioreyes2434 2 ปีที่แล้ว

    do you have to configure xampp?

  • @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.

  • @nawalaljib9284
    @nawalaljib9284 ปีที่แล้ว

    Big up

  • @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..

  • @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.

  • @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

  • @unknown-pp4jr
    @unknown-pp4jr ปีที่แล้ว +1

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

  • @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. th-cam.com/video/-MqVdG9w_lY/w-d-xo.htmlsi=_psto-72slqJyDok&t=67

  • @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

  • @seifusz
    @seifusz 2 ปีที่แล้ว +1

    You saved my ass

  • @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.

  • @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?

  • @ajitjadhav9040
    @ajitjadhav9040 ปีที่แล้ว +1

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

  • @cyracastillocacho7755
    @cyracastillocacho7755 ปีที่แล้ว +1

    it shows an SMTP connect() failed error

  • @marioeldin9315
    @marioeldin9315 ปีที่แล้ว

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

  • @basilioreyes2434
    @basilioreyes2434 2 ปีที่แล้ว

    i have mailer error

  • @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:"

  • @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:
      th-cam.com/video/bAdHC2LNbSs/w-d-xo.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

  • @Eigengrey
    @Eigengrey 9 หลายเดือนก่อน

    even this doesnt work now. 😭 jus tried it.

  • @ahmadmokhtar8175
    @ahmadmokhtar8175 ปีที่แล้ว +1

    not working 8/13/2023

  • @divyeshakabari
    @divyeshakabari ปีที่แล้ว

    still i am getting error

  • @missulu
    @missulu ปีที่แล้ว

    Why bother? PHP will doesn't need PHPmailer.

  •  ปีที่แล้ว

    not work now XD

    • @BroExperts-Tutorials
      @BroExperts-Tutorials  ปีที่แล้ว

      Pls check the latest video on this topic..
      th-cam.com/video/mte7LroYd74/w-d-xo.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 2 ปีที่แล้ว

    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!!

  • @iliasTadlaoui
    @iliasTadlaoui ปีที่แล้ว

    Thank you so much it was really helpful

  • @justinaadu-boahene6499
    @justinaadu-boahene6499 2 ปีที่แล้ว +1

    Thank you so much.