PHPMailer - Learn to send emails in PHP Fast & Easy

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 157

  • @timberghost8836
    @timberghost8836 6 років тому +2

    Out of 17 different videos, wasting 5 hours... your the only video that actually worked, thankyou very much

    • @Farooque7866
      @Farooque7866 4 роки тому

      ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html

  • @sarahshelley4645
    @sarahshelley4645 5 років тому +6

    Thanks so much Mr Digital. I've been watching vids and googling all afternoon trying to find a solution. Your explanation was perfect and i now have the PHPMailer working for me. Thank you

  • @111ark
    @111ark 5 років тому +6

    Thanks for the tutorial.
    Just to note: One might have to get in touch with your hosting provider and get the ports opened!

  • @madhawapiyumika1288
    @madhawapiyumika1288 2 роки тому

    Such a nice person you are.. and perfectly clear on words and everything.. THANK YOU SO MUCH

  • @SonnyBurnett2012
    @SonnyBurnett2012 4 роки тому +2

    Thank you! What about PHPMailer + Recaptcha + Validating messages of errors and/or not typed fields and refreshing the form after message is sent?

  • @chaipiyo
    @chaipiyo 3 роки тому

    thanks a lot mr digital .. this really was helpful

  • @sujitchakraborty3940
    @sujitchakraborty3940 5 років тому +1

    Finally one Australian with good English accent :)

    • @mrdigitalau
      @mrdigitalau  5 років тому +1

      It's an Australian accent mate :) But I know what you mean. Thank you for your compliment!

  • @patriciahodos215
    @patriciahodos215 4 роки тому +1

    what do i have to write at SMTP username and SMTP password? is it my email address and password? (i am using gmail) or something else?

    • @mahendharp9759
      @mahendharp9759 4 роки тому

      Same doubt

    • @lynchzival1276
      @lynchzival1276 4 роки тому +1

      If you're using a gmail, you need to type in your full email address in username & your gmail password in password but do keep in mind that in order for it to work you need to enable "Less secure app access" in your google account, or if you want to keep that option disable for security reasons, you can enable 2FA and generate "App passwords" use specifically for PHPMailer instead, so in that case rather than typing your gmail password you need to type in your newly generated "App passwords" in order for it to work.

    • @patriciahodos215
      @patriciahodos215 4 роки тому

      @@lynchzival1276 thank you!

  • @rui--pj4ek
    @rui--pj4ek 6 років тому +2

    Why mine doesnt work in my cpanel? It is working in localhost but once its live it no longer works.

  • @steelwix
    @steelwix 2 роки тому

    Quick and simple, but efficient, thanks a lot

  • @kamrunnahartofa3876
    @kamrunnahartofa3876 4 роки тому +1

    Thank you so much!! very nicely explained!

  • @dannyreg8405
    @dannyreg8405 2 роки тому

    Great! Okay, so how would I send two messages to two emails?

  • @lucasmence
    @lucasmence 5 років тому +1

    Thanks a lot, It worked! You've got a new sub!

  • @abulalalalalaabulala4521
    @abulalalalalaabulala4521 3 роки тому

    Why me cannot? he say require js not recognsized as an Internal or external command operable program or batch file.

  • @MofizulIslam21
    @MofizulIslam21 6 років тому +1

    You can zoom out the screen when you capture the video.
    Thanks.

  • @akagami4730
    @akagami4730 4 роки тому +1

    heloo.. SMTP not found,, why u hide the class.mailer.php ??
    database is ok,, but PHP mailer not working

  • @jovylouverzano
    @jovylouverzano 6 років тому +8

    please teach us how to fill those server settings. you skipped one of the most important part for the beginners.

  • @vandabrook4365
    @vandabrook4365 5 років тому +1

    Thanks for the tutorial. This has really helped me :)

  • @alaaaloha8208
    @alaaaloha8208 3 роки тому

    hello, i couldn't find the tourtial folder inside htdocs folder ?

  • @MrJuliusHibert
    @MrJuliusHibert 5 років тому

    thanks... i already used it but not with composer. Now I am a wiser person ;)

    • @mrdigitalau
      @mrdigitalau  5 років тому

      Too easy Julius glad to have helped :) cheers

  • @westfield90
    @westfield90 2 роки тому

    When I moved my site over to GoDaddy the form sending stopped working even though there isn’t any error message. Any clues as to why? Do their servers require something different for PHPMailer?

  • @yaseenimuhammadraja9461
    @yaseenimuhammadraja9461 3 роки тому

    Can add toggle button for hiding and showing html table within mail body using phpmailer???
    Or any another way

  • @durangodave
    @durangodave 2 роки тому

    what a about without composer?. Do u have vid for that?

  • @Photo17451
    @Photo17451 2 роки тому

    Very helpful indeed. Many thanks.

  • @martinvlk4302
    @martinvlk4302 Рік тому

    Hi can you help me with this eror? Message could not be sent. Mailer Error: Extension missing: openssl

  • @o.i.m7851
    @o.i.m7851 5 років тому +1

    I edited the 'index' file .. and then i saved the changes .. then what to do to send the email and see the logs ???? i just quite didn't understand that "blank website" part ! any help ?

    • @Farooque7866
      @Farooque7866 4 роки тому

      ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html

  • @jig1056
    @jig1056 6 років тому

    nice.. very helpful.. thank you.. worked like a charm

  • @ChasingTheMiles
    @ChasingTheMiles 6 років тому +2

    Thank you very much, it works great (Y)

  • @sweetiei.8403
    @sweetiei.8403 9 місяців тому

    would be nice to have validation as well!

  • @souravpaul6137
    @souravpaul6137 2 роки тому

    buddy you are awesome
    need video on fpdf

  • @dkbuzzin665
    @dkbuzzin665 4 роки тому

    I cannot understand, for the life of me, how to get html tags working as you have. For example if i declare $body
    $body = ' Test Text ';
    or even if I use double quotes:
    $body = " Test Text ";
    it still displays either way as: Test Text in my email. Does anyone have any suggestions for me?

    • @mrdigitalau
      @mrdigitalau  4 роки тому

      Your settings might not be using this:
      $mail->isHTML(true);
      Make sure you set it to HTML.
      Cheers

    • @dkbuzzin665
      @dkbuzzin665 4 роки тому

      @@mrdigitalau After 2 hours of looking up different ways to mix html into a php document, I finally consulted a friend, who said the exact same thing as you. ALL IT WAS WAS A STUPID BOOLEAN SETTING. JEEEZ Thank you!!! I got a email verification system for my UE4 game up and running with this.

  • @Clodidi1
    @Clodidi1 5 років тому +1

    Why can't I find a single tutorial for setting up a SMTP server? Every single book/video/article skims over this aspect and says you can find it somewhere else.. well guess what, I can't find any!

    • @mazinggaming6703
      @mazinggaming6703 5 років тому

      you have probably already found your solution, but the SMTPauth is basically the mailing domain you will be using. for example, if i want to use gmail it will be smtp.gmail.com. Or if you'd prefer outlook it would be smtp.live.com.

    • @mazinggaming6703
      @mazinggaming6703 5 років тому

      Host replaces SMTPAuth, sorry

    • @farahdinna7293
      @farahdinna7293 3 роки тому

      @@mazinggaming6703 hye can I ask if we use gmail how can I know for the username and password

  • @anshulbhargava2247
    @anshulbhargava2247 6 років тому +2

    i am not able to download phpmailer through composer, pls help

  • @farmaciamalva8370
    @farmaciamalva8370 4 роки тому

    Hi ! I want to send an email with this content , but I don't know how to put it in the body of the message.
    $categories = count($id);
    echo '';
    for ($i = 0; $i < $categories; $i++)
    {
    echo '';
    echo "{$id[$i]}";
    echo "{$name[$i]}";
    echo '';
    }
    echo '';
    ""';My content-type is: application/json , could you help me?

  • @AndyDOHD1
    @AndyDOHD1 5 років тому

    I've just had a form on a site stop working. I noticed that it has PHPMailer v2 running. The client hasn't altered anything on the site but I need to sort out the form for them. They are a charity so I will be doing this free of charge. I wondered whether the text above was present online to simply copy and paste then edit? Sorry, just being lazy I guess, lol. Looks like an excellent tutorial, I think I may have to Subscribe!

    • @mrdigitalau
      @mrdigitalau  5 років тому

      Hi Andy what is happening on the form? Are there any errors displayed on the screen or are they simply not receiving emails?

    • @mrdigitalau
      @mrdigitalau  5 років тому

      If you want, paste the code in here so we can see what can be done :)

    • @AndyDOHD1
      @AndyDOHD1 5 років тому

      @@mrdigitalau Do you mean the form handler code? I pasted some of it above. I just get a 500 error now on the server. The above is from phpmailer v2, so it is pretty old code.

    • @mrdigitalau
      @mrdigitalau  5 років тому

      @@AndyDOHD1 Oh, I can't see that code. Please try resend it. Or put it up on somewhere so I can look at it. Maybe email the php file to sean@mrdigital.com.au?

  • @mrdigitalau
    @mrdigitalau  7 років тому

    Learn to create a PHP Contact form for your website using PHPMailer here: ua-cam.com/video/uaLUbm9eZeQ/v-deo.html

  • @msdfans9006
    @msdfans9006 3 роки тому

    Is it using to send the mail to Gmail?

  • @thatoneofmany
    @thatoneofmany 5 років тому

    It's not working for me when enter the composer command it gives me an error. Composer is not recognized as the name of a cmdlet.

  • @LegendSatguruzInfotech
    @LegendSatguruzInfotech 6 років тому

    thanks done after a long tryyyyyyyyyyyy keep it upppppppppppp

  • @Nexus2UAll
    @Nexus2UAll 5 років тому +1

    Anyone know of a good tutorial using PHPMailer to send contact form emails?

    • @mrdigitalau
      @mrdigitalau  5 років тому

      Hey Pecon. Tell me what you want to learn in a tut and I'll make one..Cheers!

  • @evilhaxorSE
    @evilhaxorSE 5 років тому

    thx it works. I tweak some parts for codeigniter

  • @spang1e858
    @spang1e858 7 років тому

    thanks for the demo mate. Works well.

  • @perrycox3025
    @perrycox3025 7 років тому +1

    I cant see any of your code on your editor due to the dark background.

  • @GG_Booboo
    @GG_Booboo 7 років тому +1

    Great tutorial! Thanks!

  • @sohailahmad9826
    @sohailahmad9826 4 роки тому

    @Mr Digital SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted, SMTP Error: Could not authenticate.
    Please help me with this error: google blocked signup request (I guess)

  • @sunnypepple6571
    @sunnypepple6571 7 років тому

    @Mr Digital I had some issues with STMP ERROR: Cannot Authenticate .. Tried disabling insecure apps on google and using ssl and its port. Still, not been able to solve the problem. Could make a suggestion on how I could solve this problem?

  • @ThePolancos123
    @ThePolancos123 4 роки тому

    Thanks "Message sent" using my gmail but I'm not receiving any emails. Please help.

  • @KalyanMondalKalyan
    @KalyanMondalKalyan 6 років тому

    can you please tell me how to catch exception, if wrong email address put in 'AddAddress'??. means if mail not deliver to the user.

  • @leonardobaini702
    @leonardobaini702 5 років тому +1

    Thanks, it´s working!.

  • @GraczPierwszy
    @GraczPierwszy 7 років тому

    gmail not authorizes my domain do you now why? and all received messages have this (?)

  • @eightonethreezero
    @eightonethreezero 6 років тому

    Мужик, ты лучший! Все инструкции о настройке не помогли мне так, как твоё видео. Спасибо

  • @okepaul8509
    @okepaul8509 4 роки тому

    Does phpmailer work with wamp or it only works with xampp?

  • @zulfiqar7967
    @zulfiqar7967 6 років тому +1

    can i use with online server?? Like in Cpanel .

    • @Farooque7866
      @Farooque7866 4 роки тому

      Yes
      ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html

  • @ricardochitagu6280
    @ricardochitagu6280 6 років тому +5

    Does anyone have phpmailer working on hostgator liveserver shared hosting

    • @ihsanfajari
      @ihsanfajari 5 років тому

      mine working in 000webhost

    • @muhammedshahabaz1963
      @muhammedshahabaz1963 4 роки тому

      @@ihsanfajari how you do it like html?

    • @ihsanfajari
      @ihsanfajari 4 роки тому

      @@muhammedshahabaz1963 you need php script to make it running, cant do it with just html. Sorry if I dont get your question very well

    • @muhammedshahabaz1963
      @muhammedshahabaz1963 4 роки тому

      @@ihsanfajari ok thanks. I created with php

  • @alemieux3
    @alemieux3 4 роки тому

    Does it only work with PHP? Can I use it to send email from a form on an HTML page?

    • @stefanzomerdijk5968
      @stefanzomerdijk5968 4 роки тому

      if you want to send the data to a mail you'll have to save the data from your form to a PHP file and than mail that data PHPMailer google should explain everything :)

  • @rapundercover3292
    @rapundercover3292 6 років тому

    not working in the comand line. what is the problem?

  • @joshual2310
    @joshual2310 5 років тому

    simple and informative.. thanks

  • @paimon2k
    @paimon2k 6 років тому

    why i'm still not getting email. even tho all the process was success with debug log

  • @daghq2166
    @daghq2166 7 років тому

    It worked fine for me, but I had one small problem. For some reason my application sent 6 emails at a time.

  • @danylayton7582
    @danylayton7582 2 роки тому

    hello,
    I want to buy this tools with paypal, can I pay for it with paypal?

  • @GATIF786
    @GATIF786 3 роки тому

    how to send hyperlink with phpMailer ?

  • @AnotherKentPaul
    @AnotherKentPaul 5 років тому

    Does this work with the latest PHPMailer? Do I need composer - or other question: How can I leave it away? And last but not least: How do I set up the require directory correctly?

  • @mathaalbhai
    @mathaalbhai 6 років тому

    Is PHPMailer pass the Veracode scanned?

  • @pianoLee-sx9dx
    @pianoLee-sx9dx 6 років тому

    I tried to sign up for mailgun or sendgrid and they both require you to pay for it. Are there any free ones?

    • @mrdigitalau
      @mrdigitalau  6 років тому

      Hi Merv, not that I know of, Amazon SES is your best bet as it's 10 cents per 1000 emails. Though Sendgrid have a starter pack which is 10,000 emails free I believe?

    • @pianoLee-sx9dx
      @pianoLee-sx9dx 6 років тому

      Mr Digital hi... are you able to assist with my php? I am trying to get my user registration to work but am not sure if my code is correct

  • @denmarkagbo3162
    @denmarkagbo3162 5 років тому

    i love your video plss zoom sometimes

  • @growwithdesign
    @growwithdesign 7 років тому

    Hi buddy. Great tutorial. Well explained. I followed everything as guided. I'm not getting any errors but all my emails are going in SPAM folder. I have a lot of CSS in by html body. Can you please help me identify the issue?

    • @mrdigitalau
      @mrdigitalau  7 років тому

      Hi mate, i'll try :) which email are you using as the sender email?

    • @mrdigitalau
      @mrdigitalau  7 років тому

      If the email sending the email is cloaked as the person's email filling out the form, some email providers like gmail can mark it as spam

  • @briangil9592
    @briangil9592 5 років тому

    What's SMPT and how do I use it for this?

  • @nepalcodetv6298
    @nepalcodetv6298 7 років тому

    could not initiate mail function error????? can anyone solve this error whenver i use phpmailer.php it doesnt happen when i use class.phpmailer.php

  • @gauravkumarjha2743
    @gauravkumarjha2743 7 років тому

    @Mr Digital , i am getting error on cmd : 'composer' not recognised as internal or external command.........please help

  • @AlgoCraftsmanAniket
    @AlgoCraftsmanAniket 6 років тому

    The zip file does not have all the files can u provide that plzz...

  • @giorgitetunashvili
    @giorgitetunashvili 5 років тому

    thanks ! so helpful

  • @derickeugenio4540
    @derickeugenio4540 7 років тому +1

    how to fix could not connect to SMTP host?

    • @limitless3662
      @limitless3662 6 років тому

      Derick Eugenio which host you are using.

  • @VikasDadhich1
    @VikasDadhich1 6 років тому

    I have 5000 subscribers. I want to use phpmailer on shared hosting. How to run composer?

  • @josoma123
    @josoma123 7 років тому +1

    This error 'SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting' fixed:
    stackoverflow.com/a/47205296/2171764

    • @Maniuchh
      @Maniuchh 7 років тому +1

      Thanks, added your code from stackoverflow and it works!

  • @noorawks
    @noorawks 6 років тому

    dude how to redirect homepage after send email success, i tried to code redirect header("location:index.php"); but it's not work and still stuck in phpmailer page

    • @kshaabani
      @kshaabani 5 років тому

      It's HOW DO YOU, not HOW TO

  • @khaskhaskutta
    @khaskhaskutta 6 років тому +1

    where i get host ,username and password. what are they. plz explain

    • @LegendSatguruzInfotech
      @LegendSatguruzInfotech 6 років тому

      Host name smtp.gmail.com username is your gmail address and password is your gmail password

  • @pianoLee-sx9dx
    @pianoLee-sx9dx 6 років тому

    I have the following error:
    Parse error: syntax error, unexpected 'use' (T_USE) in C:\xampp\htdocs\loginsystem\includes\activatelevel1promo.php on line 11

    • @Farooque7866
      @Farooque7866 4 роки тому

      ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html

  • @rosminahmuktar9073
    @rosminahmuktar9073 7 років тому

    Fail to install PHPMailer via composer. Is there any solution for this?

  • @naeemullah6798
    @naeemullah6798 6 років тому

    It is not downloading composer but it shows
    'composer' is not recognized as an internal or external command,
    operable program or batch file.

    • @limitless3662
      @limitless3662 6 років тому +1

      go to the directory of c:/xampp/httpdoc/dashboard/php/now run the command

    • @naeemullah6798
      @naeemullah6798 6 років тому

      thanks

  • @MohamedIbrahim-uj5ci
    @MohamedIbrahim-uj5ci 7 років тому +2

    you are awesome! :)

    • @mrdigitalau
      @mrdigitalau  7 років тому +1

      Cheers mate, appreciate it :)

    • @jerrykharbhih6335
      @jerrykharbhih6335 6 років тому

      the composer is not recognized asa command in cmd. Can you help me?

  • @jeffereymacdaiveajao1566
    @jeffereymacdaiveajao1566 6 років тому

    What is the index file

  • @faisalshahzad7386
    @faisalshahzad7386 5 років тому

    Where is can get SMTP username and PASSWORD

  • @Everlike
    @Everlike 6 років тому

    Why you dont mention that you have to install that composer shit 'composer install' in order you want to let composer create these folders. Tooke me like 1h to find this out....

  • @romeissa5232
    @romeissa5232 2 роки тому

    thanks a lot

  • @sampalinmokohard
    @sampalinmokohard 7 років тому

    can you make a tutorial on phpmailer making a reply email message to sender ?

    • @Farooque7866
      @Farooque7866 4 роки тому

      ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html

    • @sampalinmokohard
      @sampalinmokohard 4 роки тому +2

      @@Farooque7866 i literally just woke up its been 2 years bruh!

  • @royyonatan5328
    @royyonatan5328 3 роки тому

    Finally,
    someone that is not indian xd

  • @TheAyubAnsari
    @TheAyubAnsari 7 років тому +1

    Thank you.. :)

  • @jorendeguzman914
    @jorendeguzman914 7 років тому +1

    Is this working in Localhost ?

    • @mrdigitalau
      @mrdigitalau  7 років тому +1

      Yes mate, as long as you use SMTP provider.

    • @jorendeguzman914
      @jorendeguzman914 7 років тому

      Mr Digital Still Working when i got my domain ? because i will try it first to my localhost after that i will up my website . Reply asap I really need ung feedback.

    • @nielsreijnders1461
      @nielsreijnders1461 7 років тому

      If your host supports it, it wil work. And if you try it on your localhost I would use XAMPP. It's really easy to use. And you can find tutorials under 3 min. on youtube, good luck.

  • @shubhampaul9332
    @shubhampaul9332 6 років тому

    awsm it is working :-)

  • @tovape
    @tovape 3 роки тому

    Thanks man you saved my ass

  • @eldiiardzhunusov4390
    @eldiiardzhunusov4390 4 роки тому

    Source Code?

  • @kannaiahgarivamshivardhana5595
    @kannaiahgarivamshivardhana5595 3 роки тому

    i want these files can u mail me

  • @josephvoxone
    @josephvoxone 7 років тому

    Can i get your file dude ?

  • @DanielTheF1rst
    @DanielTheF1rst 6 років тому

    thank u

  • @oldguy8177able
    @oldguy8177able 6 років тому

    can't read anything

  • @sparkden
    @sparkden 6 років тому

    think that you picked up many thumbs down because you skipped composer explaining

  • @adilismail3593
    @adilismail3593 6 років тому

    ENLARGE the text

  • @mixedcorner9746
    @mixedcorner9746 6 років тому

    please send me a project

  • @saml7471
    @saml7471 4 роки тому +1

    you are a fucking god

  • @amt8965
    @amt8965 6 років тому

    Nope, HTTP ERROR 500! Anyways. Php mailer is a huge fake. None of these forms are working and all videos are faked!