No video

Create A Contact Form with PHP That Can Actually Send Mails!

  Рет қаралды 87,659

Mr Coder

Mr Coder

Күн бұрын

Пікірлер: 135
@RobertVeale
@RobertVeale Ай бұрын
I too have been fighting to find a way to send mail through my site. It's been hours of searching over many days but now that search is over. Your video was great and got me finally up and running. THANK YOU!!
@awaznipi2709
@awaznipi2709 Жыл бұрын
No Server config, SMTP ect, No phpmail and it's just this simple?. i cant believe i had spend days trying to configure phpmail, to no avail. thanks a million.
@2fpchuck
@2fpchuck 2 жыл бұрын
Concepts, code, and execution were easy thanks to this tutorial! YOU ARE THE BEST MAN!
@cptobv
@cptobv Жыл бұрын
Indian accent
@pureart94
@pureart94 Жыл бұрын
Thanks for your Help!! I have seen so many Videos that couldnt help me out. But your way works fine and simple! THX!!!
@dpcare1499
@dpcare1499 6 ай бұрын
Excellent tutorial with speak is fine. Thanks from bottom of my heart.
@beatriz1598
@beatriz1598 2 жыл бұрын
not every hero wears cape THANK YOU
@tomar666
@tomar666 2 жыл бұрын
That's exactly what I was looking for!!! Thank you so much!! Awesom stuff. Super simple :)
@frodion
@frodion 3 ай бұрын
Best tutorial for this topic. Thank you very much!
@yazilimci_adam
@yazilimci_adam Жыл бұрын
A clean and cool tutorial !
@php-frankgp
@php-frankgp Жыл бұрын
excellent tutorial, it helped me to make my first contact form ✌
@toma1610
@toma1610 2 жыл бұрын
About inserting more inputs. I am developing a Thank You page like yours, but adding an ARRAY. For example: “Thank You, $name for contacting us. We will write you back to $email. Your selected options are: $array_with_selected_or_checked_options. I would like that array to be showed separated by comas. I checked something about the IMPLODE function, but how do I do to pack the array with the selected options in one variable and insert it everywhere? Are you in Stackoverflow?
@erikdinos1229
@erikdinos1229 Жыл бұрын
thank you for this tutorial! worked like charm!
@KeffelewAssefa
@KeffelewAssefa Жыл бұрын
Thank you, what type of setting do you use for your VS code?
@skisenvient
@skisenvient Жыл бұрын
Great tutorial. Thank you!
@diogofrazao4919
@diogofrazao4919 Жыл бұрын
thanks man you helped me a lot. You're a chad
@kalinsexplores5883
@kalinsexplores5883 Жыл бұрын
Thanks buddy! I've done it!
@smjanet
@smjanet 2 жыл бұрын
Thanks for the video. Pls do I need to upload my project to live server for this code to work? Or can it work locally using xamp server ?
@Miles09
@Miles09 Жыл бұрын
Very informative video. Thanks for the content.
@kelxdlol
@kelxdlol 2 жыл бұрын
Thank you so much!!! It is working all good on my website!!!!!!
@myllerolivio9699
@myllerolivio9699 2 жыл бұрын
Very good video and explation. Now, if I have an existing website with many folders in my root directory, where or which folder do I upload my files to? Can you shed some light? Thanks
@MrCoderYt
@MrCoderYt 2 жыл бұрын
It doesn't matter. Just make sure that the path of the file is right.
@hassanabu2750
@hassanabu2750 2 жыл бұрын
This is a really good tutorial, thank you. I am having a problem though. I get an error every time I try sending my form. Can you help please?
@php-frankgp
@php-frankgp Жыл бұрын
in the mailheader you have to put the email of your web domain
@albedesigns
@albedesigns 3 ай бұрын
Thanks for the video.. I'm such a noob when it comes to back end lol the font in your IDE is a bit hard to read for me though.
@esasrl3384
@esasrl3384 Жыл бұрын
Great tutorial! One of the best on the subject. Can i please ask you, if i want to have a modal (popup) message once the email is sent how do i link the script? Instead of how you did with another thank you page with a return to homepage link? Thank you for your answer.
@malcflodailyinspiration4379
@malcflodailyinspiration4379 2 жыл бұрын
Thanks, it worked fine!👍🙂
@jcoff1000
@jcoff1000 2 жыл бұрын
Love the help and video. I was trying to add more fields and I cant get it to work. I need 3 more fields and 2 need to be check boxes.
@chome4
@chome4 Жыл бұрын
Works well. How can I add a list of checkboxes so the email contians a list of items I check?
@kalilfagundes7431
@kalilfagundes7431 6 ай бұрын
Thanks!
@wolfenrico
@wolfenrico Жыл бұрын
Thank you for your Tut. It is great! I'd like to add some more input fields, like fon number or date in the form. How can I change the php file to send this information with the email. I'd try to do this (mail($recipient, $tel, $subject, $terminwunsch, $message, $mailheader) or die("Error!");), but it does not work. Can you help me?
@skonfoot4066
@skonfoot4066 7 ай бұрын
me too , find you a solution ?
@wolfenrico
@wolfenrico 7 ай бұрын
No!@@skonfoot4066
@lorenzofernandez8572
@lorenzofernandez8572 2 жыл бұрын
Thank you for your video. I was able to make it work on Win 11, but it does NOT work on mobile device, particularly on Android. Could you please verfify the code on mobile devices to see if it can work? Many thanks, and keep up the great work.
@php-frankgp
@php-frankgp Жыл бұрын
to make it work on mobiles in local mode you have to install a php server
@wie.funktioniert
@wie.funktioniert 6 ай бұрын
Please show at the beginning what the end product will be so we know if it is the right thing for us.
@lorenzociniglio3591
@lorenzociniglio3591 2 жыл бұрын
Works for me. Except sometimes emails wind up in my junk mail folder
@musiqbanktv7001
@musiqbanktv7001 Жыл бұрын
❤thank u boss
@toma1610
@toma1610 2 жыл бұрын
Here, you didn‘t use isset function. It was not necessary. So, when should we use it? if isset $_POST [ ' submit ' ]; etecetera...
@php-frankgp
@php-frankgp Жыл бұрын
The isset function is used to check if it is null or not.
@MohamedArafathCanada
@MohamedArafathCanada 4 ай бұрын
Sir can you do a video how to send mail using only xampp with Gmail smtp
@silviudragan8511
@silviudragan8511 2 жыл бұрын
is very useful vide,works on mobile and pc. But if the one who fills in the form enters a yahoo mail address no longer receive his answer on gmail . The form works only if he introuduces a gmail address. Can you help us?
@DetectiveSquarepants
@DetectiveSquarepants Жыл бұрын
I get a 405 error even after using the same code and steps. Any thoughts?
@reallifepubg00039nav
@reallifepubg00039nav Жыл бұрын
Bro osm🎉
@lokesh31286
@lokesh31286 Жыл бұрын
Can you please provide the video for attaching a file to mail with same contact form
@raqueliatheimpatientgardne8196
@raqueliatheimpatientgardne8196 2 жыл бұрын
Oh never mind I figured it out. Gmail will not allow it for some reason and in protonmail it is going into the SPAM folder! Why? I don't have the slightest idea, thoughts?
@erikdinos1229
@erikdinos1229 Жыл бұрын
hello all...is there any way, to add one more field? i want to get the sender's phone number too,in the emails that i receive? tried some things, but no luck!
@php-frankgp
@php-frankgp Жыл бұрын
Could you add one more field?
@PDP777PT
@PDP777PT Жыл бұрын
Hello, I am getting the error Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() Can anyone help me pls?
@krishnasingh-ek1ix
@krishnasingh-ek1ix 2 жыл бұрын
thank a lot brother
@salaheddine9251
@salaheddine9251 2 жыл бұрын
Hi, after I click the “send” button it leads me to a page with only the php code and not the html.index
@salaheddine9251
@salaheddine9251 2 жыл бұрын
Or does it only work when the website is online
@YemeniTechnician
@YemeniTechnician 2 жыл бұрын
Me too, I am online and when I click Send it leads me to php code
@salaheddine9251
@salaheddine9251 2 жыл бұрын
@@YemeniTechnician I think I figured it out, php only works when it’s online
@aauniversal4122
@aauniversal4122 8 ай бұрын
i have a website through which i send a mail to the user. the email address through which i am sending the email i want to change this email
@helaolange
@helaolange 2 жыл бұрын
Which server are you using
@shushurel
@shushurel Жыл бұрын
It's working but didn't receive any email on the receiver(email inbox or spam)
@mingming4186
@mingming4186 Ай бұрын
I have the same problem here as well. Wonder why it's not working.
@anton3997
@anton3997 Жыл бұрын
Thankyou 10000000000000000000000❤️
@saifghanmi9322
@saifghanmi9322 2 жыл бұрын
THANKSSS
@techwithgimhan1743
@techwithgimhan1743 Жыл бұрын
thanks
@IslamAudioStation
@IslamAudioStation 2 жыл бұрын
great tutorial sir, for some reason the email lands in the junk folder unfortunately. still thank you very much.
@dr.surendrashah
@dr.surendrashah Жыл бұрын
I make three files and copy paste all codes of yours and change email address to mine in PHP file, uploaded. However when I check and fill the form and sent. it shows sent confirmation message. However email was not received in inbox or junk folder. Do I need to make some setting in cpanel setting?
@sneakycheeky531
@sneakycheeky531 Жыл бұрын
u fix it ?
@php-frankgp
@php-frankgp Жыл бұрын
en el mailheader tiene que poner el email de tu dominio web, in cpanel no
@d1hoops975
@d1hoops975 3 жыл бұрын
will it work with next js?
@raqueliatheimpatientgardne8196
@raqueliatheimpatientgardne8196 2 жыл бұрын
Hi there, I am having an issue with something that I cannot figure out. I have used all your code but am working with a one page website that has the contact form at the bottom of the index.html. After putting it all together and filling out the contact form from my site it does say that the message was sent but I never get the messages. I think it might have something to do with Hostgator and where the file is located and was wondering if you could direct me to the correct place to upload my files? I have sub domains under my main domain as I have the baby package and do I need to put these files in the zip folder into the public_html folder and then extract them there? If so then how will the sub domain of my website access these files? or is it because I am using a one page website? It's very confusing on Hostgators end because they cannot help me, I have tried to call them twice and both times they hung up on me. I had even tried to forward my email from Hostgator but that didn't work either. I have gmail and protonmail and neither email gets the message so it has to be something on the server side. Please help:>}
@joy-ov7nj
@joy-ov7nj 2 жыл бұрын
If you're hosting your site on vs code using the live server extension the POST method does not work. Once you upload your site to a web host provider such as godaddy and they allow emails to be sent through their service it works perfectly
@DeepSingh-of7dl
@DeepSingh-of7dl 8 ай бұрын
how can i upload in xampp server?
@alltypevideobyakash1572
@alltypevideobyakash1572 2 жыл бұрын
It's also work mobile device? because some php use conract from work pc but not work mobile device . plz tell me plz please
@MrCoderYt
@MrCoderYt 2 жыл бұрын
Yes. It works perfectly fine. I have checked with mobile devices also.
@djonsmith4345
@djonsmith4345 Жыл бұрын
Thank you for the tutorial but it is not working. It is giving die Error! message. I uploaded the same github code into server. Please check. Thanks in advance
@php-frankgp
@php-frankgp Жыл бұрын
in the mailheader you have to put the email of your web domain
@NisanthErakkatt
@NisanthErakkatt Жыл бұрын
Not working in hostgator hosting
@rrrrrrr202
@rrrrrrr202 11 ай бұрын
Hi is it safe? from hacking? Thanks alot
@terojsevi8090
@terojsevi8090 Жыл бұрын
Warning: Failed to connect the mail server, verfy SMTP
@sureshmane233
@sureshmane233 Жыл бұрын
i want contact form with file upload to email
@PoshYoshii62
@PoshYoshii62 Жыл бұрын
why is this downloading the php file on submission
@php-frankgp
@php-frankgp Жыл бұрын
this usually happens when you don't have a php server
@thoufeequeahmed.j3659
@thoufeequeahmed.j3659 2 жыл бұрын
i get error 405 method not allowed how to fix
@joy-ov7nj
@joy-ov7nj 2 жыл бұрын
If you're hosting your site on vs code using the live server extension the POST method does not work. Once you upload your site to a web host provider such as godaddy and they allow emails to be sent through their service it works perfectly
@velrajavelraja7663
@velrajavelraja7663 Жыл бұрын
showing error
@oytunilgar715
@oytunilgar715 2 жыл бұрын
When i write $mailheader="From" . $name "
@bbyfeather
@bbyfeather Жыл бұрын
Think you are missing a dot between $name and "
@gchatterjee7012
@gchatterjee7012 2 жыл бұрын
Html form action php code not sending form details to mail inbox. Your immediate response is highly appreciated. infinity free host.
@jamescarltamayo943
@jamescarltamayo943 2 жыл бұрын
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\phpchurch\send-message.php on line 22 Error! How to fix this? :(
@vedamanichilukuri1399
@vedamanichilukuri1399 2 жыл бұрын
HEY even i too got same error.. have u resolved it?
@tintin8186
@tintin8186 2 жыл бұрын
same problem I encounter
@teamtmc7384
@teamtmc7384 2 жыл бұрын
@@tintin8186 u have to upload it
@paulapeter1846
@paulapeter1846 2 жыл бұрын
I have the same problem 😕
@PDP777PT
@PDP777PT Жыл бұрын
@@teamtmc7384 upload what? I am getting the same error
@bkentertainment6402
@bkentertainment6402 Жыл бұрын
I did everything you did. I uploaded it to my own server, but I did not receive any mail in my mailbox. (I know it will come to your spam box)
@php-frankgp
@php-frankgp Жыл бұрын
in the mailheader you have to put the email of your web domain
@bkentertainment6402
@bkentertainment6402 Жыл бұрын
@@php-frankgp I tried both but it didn't work. Do you have a pre-made code file that you can share with me?
@kaweeshaavindu1409
@kaweeshaavindu1409 Жыл бұрын
how to create account in cpanel
@thegoat2936
@thegoat2936 2 жыл бұрын
How to install cpanel ??
@massphers
@massphers 2 жыл бұрын
02:21 Ass son😂😂😂
@hybrid_twinx
@hybrid_twinx 2 жыл бұрын
Hi, I don't receive any email..
@MrCoderYt
@MrCoderYt 2 жыл бұрын
Check your spam folder please.
@abbaswebguru3352
@abbaswebguru3352 2 жыл бұрын
spam solution?
@muhammadjunaidraza2246
@muhammadjunaidraza2246 2 жыл бұрын
hey Email is sending but data not receive
@muhammadjunaidraza2246
@muhammadjunaidraza2246 2 жыл бұрын
can you help me
@MrCoderYt
@MrCoderYt 2 жыл бұрын
@@muhammadjunaidraza2246 Please download the source code from the github repo. The link is in the description. Then at mail.php change the recipient email address to your email address. You will receive the email. If you cant see it in the main inbox, check your spam folder.
@awaznipi2709
@awaznipi2709 Жыл бұрын
Attachment 📎 please 😢
@azamwahid
@azamwahid 2 жыл бұрын
where to add password ?
@dosisinternetharian
@dosisinternetharian 2 жыл бұрын
i cant use cpanel, how to do that?
@anoziefavour3390
@anoziefavour3390 2 жыл бұрын
me too
@haigoto46
@haigoto46 2 жыл бұрын
Hi, How to add CAPTCHA?
@MrCoderYt
@MrCoderYt 2 жыл бұрын
Hopefully this will help: www.w3school.info/2016/07/28/create-own-captcha-for-your-website/ I will create a video on that in future.
@umangpathakp
@umangpathakp Жыл бұрын
i am getting 405 erro after clicking send
@SmitPatel-up4xh
@SmitPatel-up4xh Жыл бұрын
same
@MiraculousLadybugPhilippines
@MiraculousLadybugPhilippines 2 жыл бұрын
not receiving a email
@joy-ov7nj
@joy-ov7nj 2 жыл бұрын
If you're hosting your site on vs code using the live server extension the POST method does not work. Once you upload your site to a web host provider such as godaddy and they allow emails to be sent through their service it works perfectly
@ElEcodelTren
@ElEcodelTren Жыл бұрын
all of this is useless if it doesn't have a mail validation code
@onwuekwemiracle6906
@onwuekwemiracle6906 7 ай бұрын
How?
@ElEcodelTren
@ElEcodelTren 7 ай бұрын
@@onwuekwemiracle6906 i dont remember exactly why i was needing it for... but i think certain plugins or certains thins like google ad sense or i dont remember which one asks you some layers of security as the validations of the sender email, if it doesnt have it your site could be easly massively spammed with trash mails
@shyamsundersingh9115
@shyamsundersingh9115 2 жыл бұрын
Its not working on server
@oscarmartinlive
@oscarmartinlive 2 жыл бұрын
I get an Error
@joy-ov7nj
@joy-ov7nj 2 жыл бұрын
If you're hosting your site on vs code using the live server extension the POST method does not work. Once you upload your site to a web host provider such as godaddy and they allow emails to be sent through their service it works perfectly
@sneakycheeky531
@sneakycheeky531 Жыл бұрын
only sends like once
@php-frankgp
@php-frankgp Жыл бұрын
you can duplicate the function or create a loop
@sneakycheeky531
@sneakycheeky531 Жыл бұрын
THNKS but i resolved it
@Indra0T
@Indra0T 6 ай бұрын
@@sneakycheeky531how you did it please?
@ohid2010
@ohid2010 Жыл бұрын
it's not working
@php-frankgp
@php-frankgp Жыл бұрын
works correctly!
@ohid2010
@ohid2010 Жыл бұрын
I downloaded the code from git and hosted it on my live server but it did not work. can you provide me your live server link and source code that working properly?
@php-frankgp
@php-frankgp Жыл бұрын
@@ohid2010 you have to change the sender, it is the fourth parameter, I have a tutorial that you can see to understand it better kzfaq.info/get/bejne/f7VpqbaeksedYWw.html
@valzu3921
@valzu3921 Жыл бұрын
This is worthless because mail goes to spam folder
@php-frankgp
@php-frankgp Жыл бұрын
you have to validate your domain so that it does not reach spam
@onwuekwemiracle6906
@onwuekwemiracle6906 7 ай бұрын
​@@php-frankgp how?
@photon_effect4341
@photon_effect4341 Жыл бұрын
hey your code didn't your it is throwing out this error: Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\my document\contact.php on line 11 Error
@akuarifin
@akuarifin Жыл бұрын
not working in email googlesuite/googleworkspace :( help me brother
Working Contact Form in PHP with Validation & Email Sending
22:55
FollowAndrew
Рет қаралды 183 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 85 МЛН
wow so cute 🥰
00:20
dednahype
Рет қаралды 20 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
الذرة أنقذت حياتي🌽😱
00:27
Cool Tool SHORTS Arabic
Рет қаралды 18 МЛН
Create a Working Contact Form in HTML that emails you (w/ spam prevention too!)
22:18
Chat Application using PHP with MySQL & JavaScript
2:45:00
CodingNepal
Рет қаралды 1 МЛН
Send Email using HTML + JavaScript (EmailJs Tutorial)
16:30
Code with Voran
Рет қаралды 101 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 942 М.
Send email with PHP | Create a Working Contact Form Using PHP
10:18
Dave Hollingworth
Рет қаралды 135 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 85 МЛН