Thanks so much Mr Digital. I've been watching vids and googling all afternoon trying to find a solution. Your explanation was perfect and i now have the PHPMailer working for me. Thank you
If you're using a gmail, you need to type in your full email address in username & your gmail password in password but do keep in mind that in order for it to work you need to enable "Less secure app access" in your google account, or if you want to keep that option disable for security reasons, you can enable 2FA and generate "App passwords" use specifically for PHPMailer instead, so in that case rather than typing your gmail password you need to type in your newly generated "App passwords" in order for it to work.
When I moved my site over to GoDaddy the form sending stopped working even though there isn’t any error message. Any clues as to why? Do their servers require something different for PHPMailer?
I edited the 'index' file .. and then i saved the changes .. then what to do to send the email and see the logs ???? i just quite didn't understand that "blank website" part ! any help ?
I cannot understand, for the life of me, how to get html tags working as you have. For example if i declare $body $body = ' Test Text '; or even if I use double quotes: $body = " Test Text "; it still displays either way as: Test Text in my email. Does anyone have any suggestions for me?
@@mrdigitalau After 2 hours of looking up different ways to mix html into a php document, I finally consulted a friend, who said the exact same thing as you. ALL IT WAS WAS A STUPID BOOLEAN SETTING. JEEEZ Thank you!!! I got a email verification system for my UE4 game up and running with this.
Why can't I find a single tutorial for setting up a SMTP server? Every single book/video/article skims over this aspect and says you can find it somewhere else.. well guess what, I can't find any!
you have probably already found your solution, but the SMTPauth is basically the mailing domain you will be using. for example, if i want to use gmail it will be smtp.gmail.com. Or if you'd prefer outlook it would be smtp.live.com.
Hi ! I want to send an email with this content , but I don't know how to put it in the body of the message. $categories = count($id); echo ''; for ($i = 0; $i < $categories; $i++) { echo ''; echo "{$id[$i]}"; echo "{$name[$i]}"; echo ''; } echo ''; ""';My content-type is: application/json , could you help me?
I've just had a form on a site stop working. I noticed that it has PHPMailer v2 running. The client hasn't altered anything on the site but I need to sort out the form for them. They are a charity so I will be doing this free of charge. I wondered whether the text above was present online to simply copy and paste then edit? Sorry, just being lazy I guess, lol. Looks like an excellent tutorial, I think I may have to Subscribe!
@@mrdigitalau Do you mean the form handler code? I pasted some of it above. I just get a 500 error now on the server. The above is from phpmailer v2, so it is pretty old code.
@@AndyDOHD1 Oh, I can't see that code. Please try resend it. Or put it up on somewhere so I can look at it. Maybe email the php file to sean@mrdigital.com.au?
@Mr Digital SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted, SMTP Error: Could not authenticate. Please help me with this error: google blocked signup request (I guess)
@Mr Digital I had some issues with STMP ERROR: Cannot Authenticate .. Tried disabling insecure apps on google and using ssl and its port. Still, not been able to solve the problem. Could make a suggestion on how I could solve this problem?
if you want to send the data to a mail you'll have to save the data from your form to a PHP file and than mail that data PHPMailer google should explain everything :)
Does this work with the latest PHPMailer? Do I need composer - or other question: How can I leave it away? And last but not least: How do I set up the require directory correctly?
Hi Merv, not that I know of, Amazon SES is your best bet as it's 10 cents per 1000 emails. Though Sendgrid have a starter pack which is 10,000 emails free I believe?
Hi buddy. Great tutorial. Well explained. I followed everything as guided. I'm not getting any errors but all my emails are going in SPAM folder. I have a lot of CSS in by html body. Can you please help me identify the issue?
dude how to redirect homepage after send email success, i tried to code redirect header("location:index.php"); but it's not work and still stuck in phpmailer page
I have the following error: Parse error: syntax error, unexpected 'use' (T_USE) in C:\xampp\htdocs\loginsystem\includes\activatelevel1promo.php on line 11
Why you dont mention that you have to install that composer shit 'composer install' in order you want to let composer create these folders. Tooke me like 1h to find this out....
Mr Digital Still Working when i got my domain ? because i will try it first to my localhost after that i will up my website . Reply asap I really need ung feedback.
If your host supports it, it wil work. And if you try it on your localhost I would use XAMPP. It's really easy to use. And you can find tutorials under 3 min. on youtube, good luck.
Out of 17 different videos, wasting 5 hours... your the only video that actually worked, thankyou very much
ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html
Thanks so much Mr Digital. I've been watching vids and googling all afternoon trying to find a solution. Your explanation was perfect and i now have the PHPMailer working for me. Thank you
Thanks for the tutorial.
Just to note: One might have to get in touch with your hosting provider and get the ports opened!
Such a nice person you are.. and perfectly clear on words and everything.. THANK YOU SO MUCH
Thank you! What about PHPMailer + Recaptcha + Validating messages of errors and/or not typed fields and refreshing the form after message is sent?
thanks a lot mr digital .. this really was helpful
Finally one Australian with good English accent :)
It's an Australian accent mate :) But I know what you mean. Thank you for your compliment!
what do i have to write at SMTP username and SMTP password? is it my email address and password? (i am using gmail) or something else?
Same doubt
If you're using a gmail, you need to type in your full email address in username & your gmail password in password but do keep in mind that in order for it to work you need to enable "Less secure app access" in your google account, or if you want to keep that option disable for security reasons, you can enable 2FA and generate "App passwords" use specifically for PHPMailer instead, so in that case rather than typing your gmail password you need to type in your newly generated "App passwords" in order for it to work.
@@lynchzival1276 thank you!
Why mine doesnt work in my cpanel? It is working in localhost but once its live it no longer works.
Quick and simple, but efficient, thanks a lot
Thank you so much!! very nicely explained!
Great! Okay, so how would I send two messages to two emails?
Thanks a lot, It worked! You've got a new sub!
Why me cannot? he say require js not recognsized as an Internal or external command operable program or batch file.
You can zoom out the screen when you capture the video.
Thanks.
heloo.. SMTP not found,, why u hide the class.mailer.php ??
database is ok,, but PHP mailer not working
please teach us how to fill those server settings. you skipped one of the most important part for the beginners.
www.wikihow.com/Install-PHPMailer
Thanks for the tutorial. This has really helped me :)
hello, i couldn't find the tourtial folder inside htdocs folder ?
thanks... i already used it but not with composer. Now I am a wiser person ;)
Too easy Julius glad to have helped :) cheers
When I moved my site over to GoDaddy the form sending stopped working even though there isn’t any error message. Any clues as to why? Do their servers require something different for PHPMailer?
Can add toggle button for hiding and showing html table within mail body using phpmailer???
Or any another way
what a about without composer?. Do u have vid for that?
Very helpful indeed. Many thanks.
Hi can you help me with this eror? Message could not be sent. Mailer Error: Extension missing: openssl
I edited the 'index' file .. and then i saved the changes .. then what to do to send the email and see the logs ???? i just quite didn't understand that "blank website" part ! any help ?
ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html
nice.. very helpful.. thank you.. worked like a charm
Thank you very much, it works great (Y)
would be nice to have validation as well!
buddy you are awesome
need video on fpdf
I cannot understand, for the life of me, how to get html tags working as you have. For example if i declare $body
$body = ' Test Text ';
or even if I use double quotes:
$body = " Test Text ";
it still displays either way as: Test Text in my email. Does anyone have any suggestions for me?
Your settings might not be using this:
$mail->isHTML(true);
Make sure you set it to HTML.
Cheers
@@mrdigitalau After 2 hours of looking up different ways to mix html into a php document, I finally consulted a friend, who said the exact same thing as you. ALL IT WAS WAS A STUPID BOOLEAN SETTING. JEEEZ Thank you!!! I got a email verification system for my UE4 game up and running with this.
Why can't I find a single tutorial for setting up a SMTP server? Every single book/video/article skims over this aspect and says you can find it somewhere else.. well guess what, I can't find any!
you have probably already found your solution, but the SMTPauth is basically the mailing domain you will be using. for example, if i want to use gmail it will be smtp.gmail.com. Or if you'd prefer outlook it would be smtp.live.com.
Host replaces SMTPAuth, sorry
@@mazinggaming6703 hye can I ask if we use gmail how can I know for the username and password
i am not able to download phpmailer through composer, pls help
Hi ! I want to send an email with this content , but I don't know how to put it in the body of the message.
$categories = count($id);
echo '';
for ($i = 0; $i < $categories; $i++)
{
echo '';
echo "{$id[$i]}";
echo "{$name[$i]}";
echo '';
}
echo '';
""';My content-type is: application/json , could you help me?
I've just had a form on a site stop working. I noticed that it has PHPMailer v2 running. The client hasn't altered anything on the site but I need to sort out the form for them. They are a charity so I will be doing this free of charge. I wondered whether the text above was present online to simply copy and paste then edit? Sorry, just being lazy I guess, lol. Looks like an excellent tutorial, I think I may have to Subscribe!
Hi Andy what is happening on the form? Are there any errors displayed on the screen or are they simply not receiving emails?
If you want, paste the code in here so we can see what can be done :)
@@mrdigitalau Do you mean the form handler code? I pasted some of it above. I just get a 500 error now on the server. The above is from phpmailer v2, so it is pretty old code.
@@AndyDOHD1 Oh, I can't see that code. Please try resend it. Or put it up on somewhere so I can look at it. Maybe email the php file to sean@mrdigital.com.au?
Learn to create a PHP Contact form for your website using PHPMailer here: ua-cam.com/video/uaLUbm9eZeQ/v-deo.html
Is it using to send the mail to Gmail?
It's not working for me when enter the composer command it gives me an error. Composer is not recognized as the name of a cmdlet.
thanks done after a long tryyyyyyyyyyyy keep it upppppppppppp
Anyone know of a good tutorial using PHPMailer to send contact form emails?
Hey Pecon. Tell me what you want to learn in a tut and I'll make one..Cheers!
thx it works. I tweak some parts for codeigniter
thanks for the demo mate. Works well.
I cant see any of your code on your editor due to the dark background.
Great tutorial! Thanks!
@Mr Digital SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted, SMTP Error: Could not authenticate.
Please help me with this error: google blocked signup request (I guess)
@Mr Digital I had some issues with STMP ERROR: Cannot Authenticate .. Tried disabling insecure apps on google and using ssl and its port. Still, not been able to solve the problem. Could make a suggestion on how I could solve this problem?
Thanks "Message sent" using my gmail but I'm not receiving any emails. Please help.
can you please tell me how to catch exception, if wrong email address put in 'AddAddress'??. means if mail not deliver to the user.
Thanks, it´s working!.
gmail not authorizes my domain do you now why? and all received messages have this (?)
Мужик, ты лучший! Все инструкции о настройке не помогли мне так, как твоё видео. Спасибо
Does phpmailer work with wamp or it only works with xampp?
can i use with online server?? Like in Cpanel .
Yes
ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html
Does anyone have phpmailer working on hostgator liveserver shared hosting
mine working in 000webhost
@@ihsanfajari how you do it like html?
@@muhammedshahabaz1963 you need php script to make it running, cant do it with just html. Sorry if I dont get your question very well
@@ihsanfajari ok thanks. I created with php
Does it only work with PHP? Can I use it to send email from a form on an HTML page?
if you want to send the data to a mail you'll have to save the data from your form to a PHP file and than mail that data PHPMailer google should explain everything :)
not working in the comand line. what is the problem?
simple and informative.. thanks
why i'm still not getting email. even tho all the process was success with debug log
It worked fine for me, but I had one small problem. For some reason my application sent 6 emails at a time.
hello,
I want to buy this tools with paypal, can I pay for it with paypal?
how to send hyperlink with phpMailer ?
Pm me on telegram @spam2smoke bro
Does this work with the latest PHPMailer? Do I need composer - or other question: How can I leave it away? And last but not least: How do I set up the require directory correctly?
Is PHPMailer pass the Veracode scanned?
I tried to sign up for mailgun or sendgrid and they both require you to pay for it. Are there any free ones?
Hi Merv, not that I know of, Amazon SES is your best bet as it's 10 cents per 1000 emails. Though Sendgrid have a starter pack which is 10,000 emails free I believe?
Mr Digital hi... are you able to assist with my php? I am trying to get my user registration to work but am not sure if my code is correct
i love your video plss zoom sometimes
Hi buddy. Great tutorial. Well explained. I followed everything as guided. I'm not getting any errors but all my emails are going in SPAM folder. I have a lot of CSS in by html body. Can you please help me identify the issue?
Hi mate, i'll try :) which email are you using as the sender email?
If the email sending the email is cloaked as the person's email filling out the form, some email providers like gmail can mark it as spam
What's SMPT and how do I use it for this?
could not initiate mail function error????? can anyone solve this error whenver i use phpmailer.php it doesnt happen when i use class.phpmailer.php
@Mr Digital , i am getting error on cmd : 'composer' not recognised as internal or external command.........please help
install composer for windows
The zip file does not have all the files can u provide that plzz...
thanks ! so helpful
how to fix could not connect to SMTP host?
Derick Eugenio which host you are using.
I have 5000 subscribers. I want to use phpmailer on shared hosting. How to run composer?
This error 'SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting' fixed:
stackoverflow.com/a/47205296/2171764
Thanks, added your code from stackoverflow and it works!
dude how to redirect homepage after send email success, i tried to code redirect header("location:index.php"); but it's not work and still stuck in phpmailer page
It's HOW DO YOU, not HOW TO
where i get host ,username and password. what are they. plz explain
Host name smtp.gmail.com username is your gmail address and password is your gmail password
I have the following error:
Parse error: syntax error, unexpected 'use' (T_USE) in C:\xampp\htdocs\loginsystem\includes\activatelevel1promo.php on line 11
ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html
Fail to install PHPMailer via composer. Is there any solution for this?
me too :/
It is not downloading composer but it shows
'composer' is not recognized as an internal or external command,
operable program or batch file.
go to the directory of c:/xampp/httpdoc/dashboard/php/now run the command
thanks
you are awesome! :)
Cheers mate, appreciate it :)
the composer is not recognized asa command in cmd. Can you help me?
What is the index file
Where is can get SMTP username and PASSWORD
Why you dont mention that you have to install that composer shit 'composer install' in order you want to let composer create these folders. Tooke me like 1h to find this out....
thanks a lot
can you make a tutorial on phpmailer making a reply email message to sender ?
ua-cam.com/video/ILt0Xqt3ZZo/v-deo.html
@@Farooque7866 i literally just woke up its been 2 years bruh!
Finally,
someone that is not indian xd
Thank you.. :)
Is this working in Localhost ?
Yes mate, as long as you use SMTP provider.
Mr Digital Still Working when i got my domain ? because i will try it first to my localhost after that i will up my website . Reply asap I really need ung feedback.
If your host supports it, it wil work. And if you try it on your localhost I would use XAMPP. It's really easy to use. And you can find tutorials under 3 min. on youtube, good luck.
awsm it is working :-)
Thanks man you saved my ass
Source Code?
i want these files can u mail me
Can i get your file dude ?
thank u
can't read anything
think that you picked up many thumbs down because you skipped composer explaining
ENLARGE the text
please send me a project
you are a fucking god
Nope, HTTP ERROR 500! Anyways. Php mailer is a huge fake. None of these forms are working and all videos are faked!