How to send Emails via SMTP using PHPMailer?

Sdílet
Vložit
  • čas přidán 23. 02. 2020
  • Today in this video you will learn how to send emails via SMTP using PHPMailer. PHPMailer makes it easy to send email using phpmailer, makes it possible to send an email with attachment in PHP using phpmailer, send HTML e-mail, etc.
    This video tutorial we'll show you how you can send email using phpmailer in PHP.
    Step 1: First, download PHPMailer script from GitHub.com
    visit the link to download phpmailer script:
    github.com/PHPMailer/PHPMaile...
    Step 2: Upload the phpmailer script to file manager inside public_html
    Step::3 Once uploaded right click on the PHPMailer-master.zip file and hit Extract
    Step::4 Enter the folder name for the extraction of PHPMailer-master.zip
    Step::5 Once the extracted folder is visible in public_html, create a new mailer.php file
    Step::6 Now edit this mailer.php file and copy the code from the link given below and paste it in mailer.php file
    pastebin.com/tP8chLfZ
    Step::7 Customize the script as per your requirements
    Step::8 After making the changes, click on Save and close the editor
    Step::9 Test the script by visiting the URL to the file: domain.tld/mailer.php
    Step::10 Once the file gets hit, the mail will be sent.
    Hope this helps!!!
    For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our CZcams channel - / redserverhost.com
    Facebook Page- / redserverhost
    Twitter Page- / redserverhost.com
    Official Website- redserverhost.com
    If you have any query, feel free to let us know via the comments section below.
  • Věda a technologie

Komentáře • 22

  • @SafalKumarRajbanshiMotu
    @SafalKumarRajbanshiMotu Před 5 měsíci

    Thank you Bro for your brief description, ❤

  • @gloriamutungi835
    @gloriamutungi835 Před 2 lety +1

    your explanation is dope kudos

  • @MasterBluspark
    @MasterBluspark Před 3 lety +1

    ive used that background music before xD its a pretty nice tune

  • @karenspivey9420
    @karenspivey9420 Před měsícem

    Thank you so much for this!

  • @shamshakthi5189
    @shamshakthi5189 Před 9 měsíci

    Thank you so much...

  • @Geoffreynyachae
    @Geoffreynyachae Před 3 lety

    those directories from downloading the phpmailer and where to place mailer.php were clashing especially when executing the code as is....I figured a work around and now its working. Thanks

  • @miryamsystemanonymous
    @miryamsystemanonymous Před rokem +1

    Hostinger hosting email sending linit via php mailer ???please tell me dear sir

  • @ghcybertech
    @ghcybertech Před 2 měsíci

    Is this a classical music???

  • @ouiameazzaoui3217
    @ouiameazzaoui3217 Před 4 lety +1

    HI thanks for the video!
    But does there is now problem if i extract the PHPMailer-master.zip outside the public_html for some reasons ?

    • @RedServerHost
      @RedServerHost  Před 4 lety

      No problem ! But Please note whatever php files you keep outside of public_html cannot be accessed or run from outside/frontend via web browser.

  • @kadenskinner4575
    @kadenskinner4575 Před 3 lety +1

    I get this error.
    Invalid address: (to):
    Message could not be sent. Mailer Error: Invalid address: (to):

  • @jaydeepsapariya8532
    @jaydeepsapariya8532 Před 3 lety

    it gives errors of trouble shooting of phpmailer library in live hosting server

  • @connectwithvictorbassey
    @connectwithvictorbassey Před 2 lety +1

    I keep getting errors about PHP Warning: require(vendor/autoload.php): failed to open stream: No such file or directory

  • @touchtbo
    @touchtbo Před 3 lety +3

    I get this error unable to handle this request.
    HTTP ERROR 500

  • @Ginfio
    @Ginfio Před měsícem

    whawt username do i put? php userame?

  • @ECenterAll
    @ECenterAll Před 2 lety

    Mailer.php link is not working please fix it

  • @champo187
    @champo187 Před 3 lety +2

    Djip file

  • @brocodersworld5670
    @brocodersworld5670 Před 2 lety

    what is public_html and where can i find it

    • @razvanv339
      @razvanv339 Před 2 lety

      it's a folder available in cpanel (web interface+credentials provided by hosting provider in order to authenticate on the server machine)