Wow! I got the point in 4 mins, you saved my many hours of struggle. Thanks, Mate, Now I am gonna learn from all your videos as all are real-time, thanks again sir
Hey man thanks for the comment. So I have just been crazy busy. Planning on making video this weekend on git and github basics. I have started job and got put ons many different stressful projects and just havent gotten around to doing videos. Really want so change this and get back to making tutorials.
"I'm going to delete this once again, just to make sure you believe me" hahahahahahahaha Thank you for the amazing video! I also appreciate a lot mentioning the cases of why would we use a third party email service...
Hi, I would like to use the contact form into my index.html file. Is it possible to make contact.ejs as a "partial" and insert into the html file? Your help will be really appreciate! Thank you
Why didn't you check for an error before redirecting? Like when you call the sendEmail function and pass in the 4 arguments the function itself has error handling but it appears that the user would be redirected regardless of the outcome. In the utils function I would do 👇🏼 return {status: 201, message: 'Congrats, email was sent successfully.'} for success and return {status: 404, message: 'Sorry, there was an error in sending..'} in the case of an error So if the status code is a success one (201) then I would redirect to sent, otherwise I would display something else. I like how you explain everything though you are a very good teacher
I signed up for an account in sendgrid. But I am unable to login. Every time I tried to log in, I am getting the error message "You are not authorized to access SendGrid, please contact". on signup, I didn't get any email from SendGrid to activate the account. Anyone having the same issue. I mailed to their support team, I am waiting for their response.
Thank a million. I can't say thank you enough. But pls I want to integrate what I learnt from your video into a real-life project. for example, the contact form you used was saved as contact.ejs and my is index.html. how do I go about this change in the file name and all my html and contact form is in one file index.html. Your prompt response will be deeply appreciated. thanks in anticipation for your prompt response.
Hi, for the package.json you just navigate into your project folder with you terminal and run the command "npm init" this will prompt you with a few question. And for the server.js you can just create a file and name it server.js or you can use terminal again inside project folder and run the command "touch server.js". Hope this helps
How come im not getting any emails??? i cloned it from yours and still not working... it gives me in terminal that email was sent though, req.body looks good too.
@@the_full_stack_junkie I got it to work, really strange bugs with my server.js, kept giving me random syntax errors even if i used your exact code but forking your repo works just fine. Thanks
I've got the same problem as yours but I've fixed it. Please double check your 'to' & 'from' fields need to follow exactly with the Single Sender Verification that you have entered. Another is please make sure your API key is correct. *without space You can create another key and try again😊
I had coded a backend for a contact form not too long ago. The emails were sending but the content wasn’t there. I kept getting undefined. I tried your video and the emails also send, but I still get the same response. I’m wondering if it’s something wrong with the express middleware or something, but I’m not sure. I was wondering if you could help me
So are you using Sendgrid or some other email service provider? Are you using Nodemailer or there own sdks for sending the emails in code? Are your emailing setup replying with any error logs? And are you saying the email content is undefined? So it does deliver to the user?
@@the_full_stack_junkie using sendgrid. I do use an error handler. Yes the email is delivered but the content that should show up in the email from req.body isn’t showing…it just says undefined
Are you enabling body parsing for info from the client by using the express bodyparse middleware. You can use this by having app.use(express.json()) middleware running in the main server file.
Question, so is it gonna be possible to send it to JUST ONE EMAIL, this one (lloydjvrensburg@gmail.com), isnt? Is it possible to send it to the one the user is entering on the input field?
So just want to make sure i understand your question. You are asking if it is possible so send the some email to the entered email address? If this is you answer than yes you should just set the "to" field in the msg object equal to the entered email and a email will be sent to the entered email. If this is not your question please try and re phrase?
GitHub Link for this video 😎:
github.com/LloydJanseVanRensburg/Email-Contact-Form
thanks bro
This vid is a hidden gem. Thanks, I learned a lot
Wow! I got the point in 4 mins, you saved my many hours of struggle. Thanks, Mate, Now I am gonna learn from all your videos as all are real-time, thanks again sir
Excellent stuff FSJ! thanks and pls keep going!
Thank you so much KhanDoor appreciate the support 💪🤓
curious mind want to know, why you have stopped publishing awesome tutorial? please let me know.... your are the best tutor i have ever seen
Hey man thanks for the comment. So I have just been crazy busy. Planning on making video this weekend on git and github basics.
I have started job and got put ons many different stressful projects and just havent gotten around to doing videos. Really want so change this and get back to making tutorials.
just what i needed.
👍👍👍
Thank you for the tutorial , It was a master class!
"I'm going to delete this once again, just to make sure you believe me" hahahahahahahaha
Thank you for the amazing video! I also appreciate a lot mentioning the cases of why would we use a third party email service...
You are amazing! Thank you!
You are a life saver man ♥️🔥.. Keep the content coming 😍
Thanks a lot! That's exactly what I'm looking for.
excellent ! ty !
THANKS!
Thanks!! for this :)
My pleasure 🤓👌
Hi, I would like to use the contact form into my index.html file. Is it possible to make contact.ejs as a "partial" and insert into the html file? Your help will be really appreciate! Thank you
Thanks.. Mate..
All good champ
Why didn't you check for an error before redirecting? Like when you call the sendEmail function and pass in the 4 arguments the function itself has error handling but it appears that the user would be redirected regardless of the outcome.
In the utils function I would do 👇🏼
return {status: 201, message: 'Congrats, email was sent successfully.'} for success and
return {status: 404, message: 'Sorry, there was an error in sending..'} in the case of an error
So if the status code is a success one (201) then I would redirect to sent, otherwise I would display something else. I like how you explain everything though you are a very good teacher
I signed up for an account in sendgrid. But I am unable to login.
Every time I tried to log in, I am getting the error message "You are not authorized to access SendGrid, please contact".
on signup, I didn't get any email from SendGrid to activate the account.
Anyone having the same issue.
I mailed to their support team, I am waiting for their response.
Thank a million. I can't say thank you enough. But pls I want to integrate what I learnt from your video into a real-life project. for example, the contact form you used was saved as contact.ejs and my is index.html. how do I go about this change in the file name and all my html and contact form is in one file index.html. Your prompt response will be deeply appreciated. thanks in anticipation for your prompt response.
will this work with nodejs with handlesbars??
ejs is like handlebars .....
Thanks a lot..! Can I use EJS to send template HTML..?
how do you do to start the nodeMailer in prod?
there is a text "via sendgrid" on the email. how can i remove it?
thanks sir
Can we host this on cloudflare pages?
Gracias!!!
I having problem to create sendgrid account. Can you halp me out with this?
How did you create package.json and server.js This my first time, any help would be apricated.
Hi, for the package.json you just navigate into your project folder with you terminal and run the command "npm init" this will prompt you with a few question. And for the server.js you can just create a file and name it server.js or you can use terminal again inside project folder and run the command "touch server.js". Hope this helps
Thanks.. could you please leave the GitHub link
Just pinned the links in the comments. Sorry for only doing it now
what if I haven't company? What will I write in Create Sender? Thanks
Love the Jeff Bezos user credentials
How come im not getting any emails??? i cloned it from yours and still not working... it gives me in terminal that email was sent though, req.body looks good too.
Did you use your own api keys?
@@the_full_stack_junkie I got it to work, really strange bugs with my server.js, kept giving me random syntax errors even if i used your exact code but forking your repo works just fine. Thanks
Will this work with react native?
The backend route for handling the email should work. The frontend will probably differ though
why email not sent message will came
I've got the same problem as yours but I've fixed it. Please double check your 'to' & 'from' fields need to follow exactly with the Single Sender Verification that you have entered.
Another is please make sure your API key is correct. *without space
You can create another key and try again😊
I had coded a backend for a contact form not too long ago. The emails were sending but the content wasn’t there. I kept getting undefined. I tried your video and the emails also send, but I still get the same response. I’m wondering if it’s something wrong with the express middleware or something, but I’m not sure. I was wondering if you could help me
So are you using Sendgrid or some other email service provider?
Are you using Nodemailer or there own sdks for sending the emails in code?
Are your emailing setup replying with any error logs?
And are you saying the email content is undefined? So it does deliver to the user?
@@the_full_stack_junkie using sendgrid. I do use an error handler. Yes the email is delivered but the content that should show up in the email from req.body isn’t showing…it just says undefined
@@the_full_stack_junkie if you still have this code could you attempt testing it again please just for me to verify whether it’s me or not?
Are you enabling body parsing for info from the client by using the express bodyparse middleware.
You can use this by having app.use(express.json()) middleware running in the main server file.
I am using the setup in my projects, that code repo i still use as my base emailing setup
Question, so is it gonna be possible to send it to JUST ONE EMAIL, this one (lloydjvrensburg@gmail.com), isnt? Is it possible to send it to the one the user is entering on the input field?
So just want to make sure i understand your question. You are asking if it is possible so send the some email to the entered email address?
If this is you answer than yes you should just set the "to" field in the msg object equal to the entered email and a email will be sent to the entered email.
If this is not your question please try and re phrase?
@@the_full_stack_junkie const to = "${email}"; ... isn't?
Yes that would work fine💪
Appreciate the time, already subscribed!!
@@christianfarfan3984 No problem mate, we are all in this together!😎