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.
Thank you Bro for your brief description, ❤
ive used that background music before xD its a pretty nice tune
Thank you so much for this!
your explanation is dope kudos
Thank you so much...
After submitting the form I am getting that the 'mail has been sent' but not receiving any
I get this error.
Invalid address: (to):
Message could not be sent. Mailer Error: Invalid address: (to):
Thanks so much please can u update the zip file download link is invalid
Hostinger hosting email sending linit via php mailer ???please tell me dear sir
I keep getting errors about PHP Warning: require(vendor/autoload.php): failed to open stream: No such file or directory
Is this a classical music???
I get this error unable to handle this request.
HTTP ERROR 500
me too how did you resolve this?
@@gloriamutungi835 did you solve it ?
it gives errors of trouble shooting of phpmailer library in live hosting server
whawt username do i put? php userame?
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.
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
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)