React.js Form with Gmail SMTP and PHPMailer

  Рет қаралды 13,291

Vicode Media

Vicode Media

Күн бұрын

Пікірлер: 30
@cbanop
@cbanop 2 жыл бұрын
Thank you soo much this helped me figure out handle change!
@shadow_3213
@shadow_3213 4 жыл бұрын
Brilliant! Thank's a lot !!
@tiagoduarte5423
@tiagoduarte5423 4 жыл бұрын
What if i want to use POST instead of GET? Thank you for the tutorial, it's pretty awsome!
@VicodeMedia
@VicodeMedia 4 жыл бұрын
Just change the method in your React.js App from /src/components/Form.js line 33. Click here to see it: github.com/ruvictor/send-email-with-react/blob/master/src/components/Form.js#L33 In this case you will have to change your PHP file from your API server as well.
@BrianArtea
@BrianArtea 3 жыл бұрын
Thank you for the tutorial! Once I run npm run build and put the files from the build folder in the directory where do I put the php file?
@VicodeMedia
@VicodeMedia 3 жыл бұрын
The php files can be on the same server but different folder or on a subdomain so you will have a separate url kinda thing. Your react form needs an API url to send the data to.
@BrianArtea
@BrianArtea 3 жыл бұрын
@@VicodeMedia in index.php what do put in where their is for url: if($_SERVER['HTTP_REFERER'] === "localhost:3000/") Also this would go in the same folder on shared hosting: require 'vendor/autoload.php';, A video on putting the form and all to shared hosting would be awesome!
@deepikabogati761
@deepikabogati761 4 жыл бұрын
thankyou for tutorial but do we need server to make this code work?
@VicodeMedia
@VicodeMedia 4 жыл бұрын
You need to send an email and you can't do that with React only. You need a server to send emails.
@deepikabogati761
@deepikabogati761 4 жыл бұрын
@@VicodeMedia ohh thankyou so much for quick response
@aogunnaike
@aogunnaike 4 жыл бұрын
Great job, how about PHP and nodejs combined
@MissAcelya
@MissAcelya 2 жыл бұрын
hello, thank you for tutorial, may i ask if it is secure to upload index.php file with password is written inside ?
@VicodeMedia
@VicodeMedia 2 жыл бұрын
Yes it's safe. Nobody can see your php code.
@karimnatakarim5972
@karimnatakarim5972 4 жыл бұрын
Hello thank you for tutotial ? Do you know to work in Node.js maybe ?
@VicodeMedia
@VicodeMedia 4 жыл бұрын
Why are you asking, Karim? Do you want to build the server side with Node?
@DiDarkZone
@DiDarkZone 4 жыл бұрын
How to deploy it now?
@VicodeMedia
@VicodeMedia 4 жыл бұрын
From the command line: "npm run build"
@DiDarkZone
@DiDarkZone 4 жыл бұрын
@@VicodeMedia Yeah i did this,its isnt working. I have to remove index.php to the main folder or how? When i do 'npm run build' to the project ,it works fine.But when i remove my index.php and vendor folder to my server I got white clean screen.
@VicodeMedia
@VicodeMedia 4 жыл бұрын
You should host the api on a public domain or subdomain.
@DiDarkZone
@DiDarkZone 4 жыл бұрын
Maybe you know service of free domain
@VicodeMedia
@VicodeMedia 4 жыл бұрын
I think GoDaddy had some hosting deals with free domain
@tod670
@tod670 3 жыл бұрын
does this work for hotmail?
@VicodeMedia
@VicodeMedia 3 жыл бұрын
I am not sure but you can use this libraries with different other SMTP servers.
@mattinurminen3015
@mattinurminen3015 4 жыл бұрын
Hi! How resolve CORS error?
@VicodeMedia
@VicodeMedia 4 жыл бұрын
Add the header in your php file
@mattinurminen3015
@mattinurminen3015 4 жыл бұрын
@@VicodeMedia It isn't work
@sandibaeva52
@sandibaeva52 3 жыл бұрын
I am also getting this error. How did you solve it? adding headers didn't work for me
@Ilirshala7
@Ilirshala7 3 жыл бұрын
How to get my personal api?
@VicodeMedia
@VicodeMedia 3 жыл бұрын
Hi! Can you be more explicit about what you mean by personal API?
@Ilirshala7
@Ilirshala7 3 жыл бұрын
You used api/..../ how can i use a free api for sending ?
React и PHP интегрируем бекенд и фронтенд
25:11
WebDev с нуля. Канал Алекса Лущенко
Рет қаралды 31 М.
Mom had to stand up for the whole family!❤️😍😁
00:39
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 83 МЛН
React.js - Multi Step Form
39:58
Vicode Media
Рет қаралды 13 М.
Sending an email from React | Gmail App Password
22:08
Scottish Coder
Рет қаралды 2,2 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 478 М.
Отправка заявки на почту. От верстки до письма на почте
56:51
PHP User Confirmation Email After Registration
43:13
Vicode Media
Рет қаралды 14 М.
Nodemailer - Send Emails From Your Node.js App
29:54
Traversy Media
Рет қаралды 368 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 482 М.