How to send Emails via SMTP using PHPMailer?
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
Thank you Bro for your brief description, ❤
your explanation is dope kudos
ive used that background music before xD its a pretty nice tune
Thank you so much for this!
Thank you so much...
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
can you help explain how you did it thanks
Hostinger hosting email sending linit via php mailer ???please tell me dear sir
Is this a classical music???
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 ?
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.
I get this error.
Invalid address: (to):
Message could not be sent. Mailer Error: Invalid address: (to):
it gives errors of trouble shooting of phpmailer library in live hosting server
I keep getting errors about PHP Warning: require(vendor/autoload.php): failed to open stream: No such file or directory
I get this error unable to handle this request.
HTTP ERROR 500
me too how did you resolve this?
@@gloriamutungi835 did you solve it ?
whawt username do i put? php userame?
Mailer.php link is not working please fix it
Djip file
what is public_html and where can i find it
it's a folder available in cpanel (web interface+credentials provided by hosting provider in order to authenticate on the server machine)