PHP Tutorial: How To Send Email From Localhost Using PHPMailer

  Рет қаралды 61,843

Senaid Bacinovic

Senaid Bacinovic

Күн бұрын

Пікірлер: 231
@TJPactronix
@TJPactronix 4 жыл бұрын
What a great tutorial. Coming from a russian hacker, you know it's gotta be good. Thank you
@akilarathnayake9940
@akilarathnayake9940 5 жыл бұрын
Thanks Mr.Senaid Bačinović... Its pleasure to study from you.. Your lectures are not just lectures... They explain A to Z path... Can understand any beginner... That is your talent..👌👍
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you so much for this comment!
@khannatejas13
@khannatejas13 5 жыл бұрын
Your way of teaching is simple and accurate. Thanks Teacher .Student From India.
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you so much.
@abhishekdeb8456
@abhishekdeb8456 5 жыл бұрын
Love you a lot a lot. You are genius to me. Its works great in my localhost. This is first time mail sent by my localhost. I was struggling hard for a long time and in return today you make my day. Thank You Senaid.
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
My pleasure and thank you.
@chavvamanjunath4489
@chavvamanjunath4489 3 жыл бұрын
Greatest Of all Time .Excellent .Thanks Buddy!!!.
@SenaidBacinovic
@SenaidBacinovic 3 жыл бұрын
My pleasure!
@swanandjoshi4998
@swanandjoshi4998 5 жыл бұрын
Bro it works for me nice tutorial . YOur tutorial is booming Success is light
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you!
@GoergeVonHeinzberg
@GoergeVonHeinzberg 5 жыл бұрын
Bro.. I love your video, I love your work. Your tutorial is very easy to learn. Basically I'm newbie in coding. I don't know anything about it. But when I show your video. It's... It's awesome!!
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
WOW! Big words, thank you so much! :)
@naveenchowdary4881
@naveenchowdary4881 3 жыл бұрын
Your the Best.....working 100% !!thank you .....thank you so much for sharing source code!!....i'm subscribing your channel.
@SenaidBacinovic
@SenaidBacinovic 3 жыл бұрын
Thanks for the sub!
@pavanajmeera9009
@pavanajmeera9009 3 жыл бұрын
very very very very good, finished project just before a day of deadline.thankyou dude
@SenaidBacinovic
@SenaidBacinovic 3 жыл бұрын
Glad I could help
@_timestamp
@_timestamp 4 жыл бұрын
6:48 you run the cached version of the page. Press ctrl+F5 to reload the page ignoring the cached files (or open the developer tool and check the option 'disable cache' in the 'network' tab)
@SenaidBacinovic
@SenaidBacinovic 4 жыл бұрын
Thank you, but in most cases cache doesn't exist when testing under localhost.
@slamanaim1837
@slamanaim1837 Жыл бұрын
hi friend really you are excellent .i´m computer science engineer and i´m glad to watch your video and i have honor to be in touch with you
@SenaidBacinovic
@SenaidBacinovic Жыл бұрын
Thank you for the nice words, it's my plesure!
@slamanaim1837
@slamanaim1837 Жыл бұрын
please how can i contact you to cooperate together? thx in advance
@SenaidBacinovic
@SenaidBacinovic Жыл бұрын
@@slamanaim1837 please go to my website and send an email from there :)
@steadycools
@steadycools 3 жыл бұрын
Nice bro, it is working,, Thankyou so much for share the code and files in 1 .zip folder
@SenaidBacinovic
@SenaidBacinovic 3 жыл бұрын
It's my pleasure
@marye1218
@marye1218 4 жыл бұрын
Un énorme merci pour cette vidéo !!!! Elle est géniale !! Sans même parler un mot d'anglais, l'explication est tellement claire que j'ai tout compris. Vous êtes un excellent pédagogue ! Merci à vous de France ;-)
@sohinidutta8632
@sohinidutta8632 4 жыл бұрын
Thank you so much for this tutorial...I was stuck with the code...now its working...thanks a lot :D
@Abdulrahman-my3tu
@Abdulrahman-my3tu 3 жыл бұрын
thank you , you helped me to complete my project
@SenaidBacinovic
@SenaidBacinovic 2 жыл бұрын
Glad I could help!
@inesoliveira693
@inesoliveira693 5 жыл бұрын
You save my life 😂😊 Thank youuu.
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Big words, thank you :)
@piyasidey2117
@piyasidey2117 3 жыл бұрын
Thank you very much Sir..It's working.
@sharonkaramba6956
@sharonkaramba6956 5 жыл бұрын
Great Tutorial... Thank you :) I will look at your other tutorials. Greetings from Namibia (Africa)!
@vigauss1889
@vigauss1889 5 жыл бұрын
You are a good teacher. Simple, understandably and useful. Keep going. Hello from Siberia! Good luck dude!
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you so much. :D
@loves.6779
@loves.6779 4 жыл бұрын
Amazing video! It all worked perfectly and I understood everything you said
@nayanakanchana2595
@nayanakanchana2595 5 жыл бұрын
It said 500 (Internal server error ) May be with jquery How can i fix it?
@ajlakorman9515
@ajlakorman9515 Жыл бұрын
What if we have turned the ON option for Less Secure Apps, but still we get the same error message for TroubleShooting?
@lawrencelamprecht3180
@lawrencelamprecht3180 5 жыл бұрын
I am having a major issue. I am using bootstrap and something happened that the emails just stopped being sent. I have sent more than a week trying to fix this without success. I then turned to phpmailer, but the issue is in the newer version of phpmailer, the syntax is somewhat different. I found your video, I tried to download the sourcecode but when doing so, the files that I get are nowhere near what I see you coding on the video. Meaning that the sourcecode is not teh same as the video content. Where can I get the correct source files? Thanks Lawrence
@haithamalmawla9480
@haithamalmawla9480 3 жыл бұрын
thanks mate finally someone get it right all respect mate
@SenaidBacinovic
@SenaidBacinovic 3 жыл бұрын
my pleasure, thank you :)
@MichaelPritchardRR3
@MichaelPritchardRR3 5 жыл бұрын
Thanks this is a great tutorial, I have a couple of questions. 1) should 'required' be used in the input fields of the html form? 2) Should the user input data be 'sanitized' before posting/emailing?
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you. 1) No, you don't need it since we are doing verification with jQuery 2) It's always smart to sanitize, but for just using data to send an email you don't need to
@aggreyafray6869
@aggreyafray6869 5 жыл бұрын
hey thanx for the video but why does it send in spam? and how can i configure it to in inbox?
@ghostdzgamer6684
@ghostdzgamer6684 3 жыл бұрын
great vid bro , i just wonna to ask you is there a way to send email using phpMailer with progressbar with (Ajax)
@venkateshn4996
@venkateshn4996 4 жыл бұрын
Yeah its working for me. Thanks a loooooot dude.......
@wiksta4316
@wiksta4316 4 жыл бұрын
Great work, very helpful material!
@ShubhamKumar-ur1vm
@ShubhamKumar-ur1vm 4 жыл бұрын
thank you very helpful even in 2021 !
@christianmarklaurio9604
@christianmarklaurio9604 4 жыл бұрын
Thanks do more tutorial you're really generous keep it up!
@l-yakuza5027
@l-yakuza5027 4 жыл бұрын
Its said to me SMTP -> ERROR: Password not accepted from server: 535-5.7.8 Username and Password not accepted. even when i activate the less connection secure
@lisandrolaman6455
@lisandrolaman6455 5 жыл бұрын
is isSMTP(); needed if on live server?
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Make a test, it's never the same.
@santoshentertainment3098
@santoshentertainment3098 4 жыл бұрын
I'm happy from c panel how can we send ?? Can I use this same code?
@muhammadnaimmul7169
@muhammadnaimmul7169 3 жыл бұрын
why my ajax cannot read the response function
@jumarchavez4558
@jumarchavez4558 4 жыл бұрын
Is there a way to don't do the less secure steps in this tutorial
@TDarkCoder
@TDarkCoder 5 жыл бұрын
Why do we need email input in form if we dont send message there?
@ashharkausar413
@ashharkausar413 3 жыл бұрын
ty for this video!!
@SenaidBacinovic
@SenaidBacinovic 3 жыл бұрын
My pleasure!
@sharayubhosale364
@sharayubhosale364 4 жыл бұрын
thank u for vedio. The code is working on localhost but not in server. I am getting error " PHP Fatal error: Uncaught Error: Class 'PHPMailer' not found" even i used PHPmailer
@hifzan09
@hifzan09 5 жыл бұрын
Thank you so much! can you help me on how to save the data into the mysql database?
@CodeWithBehram7497
@CodeWithBehram7497 2 жыл бұрын
you've got new sub thank's brother😀
@SenaidBacinovic
@SenaidBacinovic 2 жыл бұрын
Thank you!
@lawlietkun2375
@lawlietkun2375 4 жыл бұрын
cant we send to people who do not have gmail but have an "outlook" or "live" email?
@SenaidBacinovic
@SenaidBacinovic 4 жыл бұрын
Yes
@michaelnokrah1653
@michaelnokrah1653 4 жыл бұрын
It works fine on localhost but after uploading it on live server, shit doesn’t work no more... now how’s that?!
@collinsonyegbado309
@collinsonyegbado309 5 жыл бұрын
sir,thanks for the video. In case, it says 'message has been sent' but i cant find the mail in mail box. I have turned on "allow less application " 2 step verification is off.so what could be the issue?I have created a new gmail account but to no avail
@sweetiei.8403
@sweetiei.8403 8 ай бұрын
would be nice to have complete form validation with Captcha :) thanks!!
@betzaidarodriguez7129
@betzaidarodriguez7129 4 жыл бұрын
Hi! I have some issues with trying to configure the gmail account with the less secure apps. Can anyone help me?
@aurorasomething7213
@aurorasomething7213 5 жыл бұрын
why my console on dev tools didnt appear anything? and i didnt receive any email :(( please help!
@MrSuperAnimesh
@MrSuperAnimesh 4 жыл бұрын
mine is giving an Typeerror - ajax is not a function . what to do ?
@SenaidBacinovic
@SenaidBacinovic 4 жыл бұрын
Make sure that you have included jQuery library.
@dtecdasilva
@dtecdasilva 4 жыл бұрын
best tutorial ever
@samuelnyamekesse239
@samuelnyamekesse239 4 жыл бұрын
I am getting an error saying "could not instantiate PHP mail function" any help please
@Clawsn
@Clawsn 4 жыл бұрын
I'm getting this error when sendEmail function is fired - "Object "parsererror" SyntaxError: Unexpected token a in JSON at position 0". Any suggestions on how to debug?
@jay-rathod-01
@jay-rathod-01 4 жыл бұрын
cmon man thats a syntax error
@aliou_thiam
@aliou_thiam 4 жыл бұрын
thank you very very very much you really save my life
@mia3308
@mia3308 5 жыл бұрын
Hey, I get an error, because sendEmail is not defined, but my code is exactly the same as yours
@mianhaseeb8294
@mianhaseeb8294 5 жыл бұрын
i'm happy to see u again in youtube
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you :)
@christopherikpat5512
@christopherikpat5512 5 жыл бұрын
Wow!!! Great tutorial and properly explained. Can it send bulk emails?
@nipunsachinda
@nipunsachinda 5 жыл бұрын
thanls man its works very good!!!
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thanks !
@freelarabie3218
@freelarabie3218 4 жыл бұрын
Thank you very much Friend.... Be a Lighthouse for us mister
@rilwanmaruf9247
@rilwanmaruf9247 5 жыл бұрын
I try to use it on live server but getting error. Please help a soul here
@mohitmohit-nw6pc
@mohitmohit-nw6pc 4 жыл бұрын
hi can u help pls your code will not working its show error
@atharvanirali1027
@atharvanirali1027 4 жыл бұрын
Hey hi, amazing tutorial! just wanted to ask if i deploy it on Heroku will it still work?
@zahrasamiei9244
@zahrasamiei9244 4 жыл бұрын
i am using this code but its not working.i think ajax is not sending
@kindstone8181
@kindstone8181 3 жыл бұрын
Thank you very much !!
@ahmedelbandrawy2606
@ahmedelbandrawy2606 4 жыл бұрын
it send successfully but in gmail it doesn't show me who is send i want to show the email about who is send
@GianlucaBrizi
@GianlucaBrizi 4 жыл бұрын
Very good. I will try!
@akhmadrijalsyukri8554
@akhmadrijalsyukri8554 2 жыл бұрын
what if you send an incoming email to the database?
@SenaidBacinovic
@SenaidBacinovic 2 жыл бұрын
Hmm, what do you mean? Do you want to save email to the database?
@akhmadrijalsyukri8554
@akhmadrijalsyukri8554 2 жыл бұрын
@@SenaidBacinovic yes bro, please make a tutorial
@SenaidBacinovic
@SenaidBacinovic 2 жыл бұрын
@@akhmadrijalsyukri8554 all you need to have is: - one html form (like we have in this tutorial) - instead of sending just store to the db (plenty of those tutorials)
@jimtooley7114
@jimtooley7114 4 жыл бұрын
Thank you ... it just works!
@SenaidBacinovic
@SenaidBacinovic 4 жыл бұрын
You're welcome!
@manikumarize
@manikumarize 4 жыл бұрын
Thanks a lot Sir!
@aakashwankhede92
@aakashwankhede92 4 жыл бұрын
I m still getting SMTP connect() error please help
@leomarquez2349
@leomarquez2349 4 жыл бұрын
did you solve it? i beleive its because we need an SMTP server and account
@martinsin7151
@martinsin7151 4 жыл бұрын
This is a super good moive!
@datikken5327
@datikken5327 5 жыл бұрын
1 cup of coffee for this guy please
@anrygarcia1498
@anrygarcia1498 5 жыл бұрын
i changed the SMTP Settings and Email Settings to my own E-Mail and Password why doesn't sending? please help. thank you!
@anrygarcia1498
@anrygarcia1498 5 жыл бұрын
{status: "failed", response: "Something is wrong: SMTP connect() failed.…thub.com/PHPMailer/PHPMailer/wiki/Troubleshooting"} response: "Something is wrong: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Have you tried investigating like I did in the video?
@anrygarcia1498
@anrygarcia1498 5 жыл бұрын
@@SenaidBacinovic yes I did.
@anrygarcia1498
@anrygarcia1498 5 жыл бұрын
@@SenaidBacinovic i already watched the full video of yours and followed your instructions then nothing happened.
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Do you get any error?
@herfaysool9895
@herfaysool9895 5 жыл бұрын
i get this error "Parse error: syntax error, unexpected '}' in C:\xammp\htdocs\send_mail.php on line 27" what am i doing wrong?
@JustinBalaguer
@JustinBalaguer 5 жыл бұрын
why your "send_mail.php" is at the root of your htdocs folder? it should be on your project folder, and on line 27 you mightve missed/put an extra } (or just put it there accidentally / without {)
@raamkumaryou
@raamkumaryou 4 жыл бұрын
Dear brother ! I got an error that localhost says try again. what should i do?
@LetsBland9411
@LetsBland9411 2 жыл бұрын
Bro please reply to this question most of us are having the same problem
@Justsixs
@Justsixs 2 жыл бұрын
Need help getting this error PHP Parse error: syntax error, unexpected '?> ', expecting ')' in C:\inetpub\wwwroot\18650\PHPMailerAutoload.php on line 50
@narsingchinte3813
@narsingchinte3813 2 жыл бұрын
Sir it say try again what to do
@thirashapw
@thirashapw 4 жыл бұрын
Thanks it's works on me when i used tls and port 587
@SenaidBacinovic
@SenaidBacinovic 4 жыл бұрын
Glad I could help
@emmanuels.emokor3783
@emmanuels.emokor3783 5 жыл бұрын
hello, I love your tutorials. I am doing project to verify user registration, but the email cannot be sent to the target email (which is my email).
@hopitalibnsina458
@hopitalibnsina458 4 жыл бұрын
thank thank thank you sooooooooooo mutch you are the best tu m'asauver
@quickprogrammingtips7672
@quickprogrammingtips7672 5 жыл бұрын
SMTP Error: Could not authenticate. whyyyyyyy
@iMajed
@iMajed 4 жыл бұрын
Thanks :)
@ولسوفيعطيكربكفترضى-ذ3ظ
@ولسوفيعطيكربكفترضى-ذ3ظ 4 жыл бұрын
thank yoooooou so much
@SenaidBacinovic
@SenaidBacinovic 4 жыл бұрын
Thank you :)
@Шепыч-с4у
@Шепыч-с4у 5 жыл бұрын
Спасибо дружище) Thank you friend!
@TheOmarBH
@TheOmarBH 4 жыл бұрын
bro i need your help. I dont know why i cand send the email's. I try with different gmails accounts and no positive result. I enable the opción of gmail for third-party and dosen't work :c
@ludaxofficial
@ludaxofficial 3 жыл бұрын
if you need help, hmu
@luckyandroid3568
@luckyandroid3568 5 жыл бұрын
i using in localhost xampp and i get message Please Try Again! what should i do ?
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Have you tried to print the error and see where is the issue?
@luckyandroid3568
@luckyandroid3568 5 жыл бұрын
Yes is write like this SMTP(Connect): failed but i was try it and result is Email Sent ! Then i looking inbox mail and voila there are the email from my own account email and now is Send in the mail box Thank You..
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
@@luckyandroid3568 Ok, great!
@luckyandroid3568
@luckyandroid3568 5 жыл бұрын
@@SenaidBacinovic Thank You Very Much, I Was have many experience from this content..Thank You..
@meeratiqa123
@meeratiqa123 4 жыл бұрын
@@luckyandroid3568 how did you solve it?
@giuseppepesce2230
@giuseppepesce2230 4 жыл бұрын
Sorry i continue to have this code error: Something is wrong: Extension missing: openssl
@neothegiftsa
@neothegiftsa 4 жыл бұрын
You need to enable this in your server under your PHP file 0. Access your server = e.g. NGINX, XAMPP 1. Access your PHP folder 2. Look for a file called "php.ini" 3. Search for ";extension=openssl" 4. Remove the semi-colon 5. Restart your server And you should be good to go
@giuseppepesce2230
@giuseppepesce2230 4 жыл бұрын
@@neothegiftsa ok tnx
@heykelbensalem4762
@heykelbensalem4762 5 жыл бұрын
"Email Has Been Sent! " {"status":"success","response":"Email is sent!"} I received this message but i didn't receive any mail yet . what shall I do? thanks
@bernardoacheampong6149
@bernardoacheampong6149 5 жыл бұрын
Check you spam
@sallurajput1166
@sallurajput1166 4 жыл бұрын
i want the code it is possible?????
@LetsBland9411
@LetsBland9411 2 жыл бұрын
It's a nice video sir but why is it not working for me it's saying( localhost says try again ) or what is that password you used is it a password for your email ?and why did you use two emails the receiving email make sense but why that other one
@farhankhan394
@farhankhan394 5 жыл бұрын
that's looks good :)
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you :)
@heraclitothiago
@heraclitothiago 5 жыл бұрын
I have an error too, in my case I received the message of localhost saying "Please Try Again"
@heraclitothiago
@heraclitothiago 5 жыл бұрын
The same thing happened with the code I downloaded.
@كلامالله-س9ز
@كلامالله-س9ز 5 жыл бұрын
me toooooooo
@mrdeveloper1978
@mrdeveloper1978 5 жыл бұрын
working perfect in localhost but its not working on the server. kindly help
@babutechmbr4860
@babutechmbr4860 4 жыл бұрын
same problem for me. did you find any solution please help me?
@nicolassaikali5725
@nicolassaikali5725 4 жыл бұрын
"class PHPMailer not found "
@albertoandrade7132
@albertoandrade7132 5 жыл бұрын
Thanks really helpful!
@udm_bsit_lauriochristianma8461
@udm_bsit_lauriochristianma8461 3 жыл бұрын
save lives sir!
@ra1pm3t
@ra1pm3t 5 жыл бұрын
*now it works witch is weird but anyway* that's a phrased used by webprogrammers all the time.. 😀 hopefully not by medical programmers 😲
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
LOL, good one! Glad you made it :)
@hofas2007
@hofas2007 5 жыл бұрын
in bootstrap 4 and more there is no class cal-md-offset-3 insted is offset-md-3 ... :) and therefor it working fine , becouse offset and align push inputs to the right from center :)
@pushpikasj
@pushpikasj 5 жыл бұрын
This is great video, good job. But wrong sender's email address in the sent email.
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you. Check your settings to fix that.
@adrien8768
@adrien8768 5 жыл бұрын
Cool :)
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
Thank you :)
@JustinBalaguer
@JustinBalaguer 5 жыл бұрын
thank you so much.
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
My pleasure :)
@للعلمطالب
@للعلمطالب 5 жыл бұрын
شكرا لك من الجزائر
@SenaidBacinovic
@SenaidBacinovic 5 жыл бұрын
My pleasure :)
PHP & SendGrid API Tutorial: Send Email From Localhost & Server
13:38
Senaid Bacinovic
Рет қаралды 25 М.
How to Put a Website Online: Template, Coding, Domain, Hosting, and DNS
59:26
freeCodeCamp.org
Рет қаралды 2,4 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
Laravel Tutorial For Beginners (Simple User CRUD App)
1:16:13
LearnWebCode
Рет қаралды 210 М.
Ansible 101 - Episode 1 - Introduction to Ansible
1:03:43
Jeff Geerling
Рет қаралды 560 М.
Working Contact Form in PHP with Validation & Email Sending
22:55
FollowAndrew
Рет қаралды 185 М.
Why OCaml
1:06:40
Jane Street
Рет қаралды 124 М.
Neo4j (Graph Database) Crash Course
1:23:08
Laith Academy
Рет қаралды 247 М.
SQL Injection | Complete Guide
1:11:53
Rana Khalil
Рет қаралды 264 М.
OpenSSH Made Easy: The Ultimate Step-by-Step Tutorial
1:28:00
Learn Linux TV
Рет қаралды 669 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.