Comments (42)

  1. i have a doubt.
    $mail->Username = "xxxxx@gmail.com"; // GMAIL username
    $mail->Password = "********"; // GMAIL password

    it will steal my gmail username and password.
    why we give gmail password.
    what should i do.

  2. 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?

  3. 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 ?

  4. 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

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

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

  7. Hi Mr. Digital, I want it to say thank you and with your permission I will like to add some comments: setting up a google account worked for me with the following adjustments
    $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted

    $mail->Port = 465;

    and I added the following Lines(Ifound them on the Internet)
    $mail->SMTPOptions = array(

    'ssl' => array(

    'verify_peer' => false,

    'verify_peer_name' => false,

    'allow_self_signed' => true

    )

    );

    Cheers

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

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

  10. 2018-12-01 07:57:23 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP s84sm17345942pfi.15 – gsmtp

    2018-12-01 07:57:23 CLIENT -> SERVER: EHLO localhost

    2018-12-01 07:57:23 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [112.133.237.25]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8

    2018-12-01 07:57:23 CLIENT -> SERVER: STARTTLS

    2018-12-01 07:57:23 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS

    2018-12-01 07:57:23 CLIENT -> SERVER: EHLO localhost

    2018-12-01 07:57:23 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [112.133.237.25]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8

    2018-12-01 07:57:23 CLIENT -> SERVER: AUTH LOGIN

    2018-12-01 07:57:24 SERVER -> CLIENT: 334 VXNlcm5hbWU6

    2018-12-01 07:57:24 CLIENT -> SERVER: <credentials hidden>

    2018-12-01 07:57:24 SERVER -> CLIENT: 334 UGFzc3dvcmQ6

    2018-12-01 07:57:24 CLIENT -> SERVER: <credentials hidden>

    2018-12-01 07:57:24 SERVER > CLIENT: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbv3534-5.7.14 drgNqSMJ8_2hKxiNZgZloLhiPb8SvH7DSnGO0bxNeu4f8hYt9ZxE6wFPRzXZVJQZP8b4zo534-5.7.14 Tr8qmdl_mc50uLl9ntmQYc25LAsUJw1DXLsF8zZVP38SQGs5C6ebWnbyMlirzxy0qIxpCH534-5.7.14 BXi448aSdHuGQ9oEV1db_6bt1feKPgE-zt35_-ePTaLGuEG-E4aZU3H0IYRSOGQHN559s534-5.7.14 GPj36y0vVGB-FcYCZCZnWpXnDRlghJf3-VdX8HuSPUWaHMAiCj> Please log in via534-5.7.14 your web browser and then try again.534-5.7.14 Learn more at534 5.7.14 https://support.google.com/mail/answer/78754 s84sm17345942pfi.15 – gsmtp

    2018-12-01 07:57:24 SMTP ERROR: Password command failed: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbv3534-5.7.14 drgNqSMJ8_2hKxiNZgZloLhiPb8SvH7DSnGO0bxNeu4f8hYt9ZxE6wFPRzXZVJQZP8b4zo534-5.7.14 Tr8qmdl_mc50uLl9ntmQYc25LAsUJw1DXLsF8zZVP38SQGs5C6ebWnbyMlirzxy0qIxpCH534-5.7.14 BXi448aSdHuGQ9oEV1db_6bt1feKPgE-zt35-_-ePTaLGuEG-E4aZU3H0IYRSOGQHN559s534-5.7.14 GPj36y0vVGB-FcYCZCZnWpXnDRlghJf3-VdX8HuSPUWaHMAiCj> Please log in via534-5.7.14 your web browser and then try again.534-5.7.14 Learn more at534 5.7.14 https://support.google.com/mail/answer/78754 s84sm17345942pfi.15 – gsmtp

    SMTP Error: Could not authenticate.

    2018-12-01 07:57:24 CLIENT -> SERVER: QUIT

    2018-12-01 07:57:24 SERVER -> CLIENT: 221 2.0.0 closing connection s84sm17345942pfi.15 – gsmtp

    SMTP Error: Could not authenticate.

    Email could not be sent. Mailer Error: SMTP Error: Could not authenticate.why

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

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

  13. 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

  14. WHat if I want to get the contents of a HTML document, for eample if the user sets from/to and message himself. How can I get and send these values?

  15. I have the following error:

    Parse error: syntax error, unexpected 'use' (T_USE) in C:xampphtdocsloginsystemincludesactivatelevel1promo.php on line 11

Comments are closed.