How to send Emails via SMTP using PHPMailer?

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • 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/PHP....
    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/t...
    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/mai...
    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 UA-cam 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.

КОМЕНТАРІ • 24

  • @SafalKumarRajbanshiMotu
    @SafalKumarRajbanshiMotu 6 місяців тому

    Thank you Bro for your brief description, ❤

  • @MasterBluspark
    @MasterBluspark 3 роки тому +1

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

  • @karenspivey9420
    @karenspivey9420 3 місяці тому

    Thank you so much for this!

  • @gloriamutungi835
    @gloriamutungi835 2 роки тому +1

    your explanation is dope kudos

  • @shamshakthi5189
    @shamshakthi5189 11 місяців тому

    Thank you so much...

  • @Ankita_Informs
    @Ankita_Informs Місяць тому

    After submitting the form I am getting that the 'mail has been sent' but not receiving any

  • @kadenskinner4575
    @kadenskinner4575 3 роки тому +1

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

  • @Saintv77
    @Saintv77 8 днів тому

    Thanks so much please can u update the zip file download link is invalid

  • @Miryam_systemrussia
    @Miryam_systemrussia Рік тому +1

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

  • @connectwithvictorbassey
    @connectwithvictorbassey 2 роки тому +1

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

  • @ghcybertech
    @ghcybertech 3 місяці тому

    Is this a classical music???

  • @touchtbo
    @touchtbo 4 роки тому +3

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

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

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

  • @Ginfio
    @Ginfio 2 місяці тому

    whawt username do i put? php userame?

  • @ouiameazzaoui3217
    @ouiameazzaoui3217 4 роки тому +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  4 роки тому

      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.

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

    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

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

    Mailer.php link is not working please fix it

  • @champo187
    @champo187 3 роки тому +2

    Djip file

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

    what is public_html and where can i find it

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

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