HamishMW / portfolio

My personal portfolio website built using React and three js
https://hamishw.com
MIT License
2.41k stars 519 forks source link

how do i connect contact page #53

Open GnaneshNayak opened 1 year ago

GnaneshNayak commented 1 year ago

im unable setup contact page plz help me withit

mayankjain25 commented 1 year ago

The contact page used by Hamish has his own APIs set up on AWS Serverless Functions (if i remember correctly). If you want to set up a contact section of your own, you have to use different JS libraries (like EmailJS).

Idoesfrontend commented 1 year ago

@mayankjain25 Any chance that you could post your contact.js assuming that you implemented something like EmailJS?

mayankjain25 commented 1 year ago

@mayankjain25 Any chance that you could post your contact.js assuming that you implemented something like EmailJS?

I did use EmailJS for the same. Here's the code snippet: https://codefile.io/f/zxrzNAWxx3Rb7UEgKkGn Just replace line 39,40,and 42 with your own service id, user id and template id

Idoesfrontend commented 1 year ago

@mayankjain25 hey man, was there an error with copying/pasting? code randomly ends on line 127

mayankjain25 commented 1 year ago

@mayankjain25 hey man, was there an error with copying/pasting? code randomly ends on line 127

Have updated the code again. Looks like I copied the same thing twice and that too incorrectly. Apologies ;-;

And by the way, replace line 52, 53 and 55 with your own values.

Tresillo2017 commented 1 year ago

@mayankjain25 hey man, was there an error with copying/pasting? code randomly ends on line 127

Have updated the code again. Looks like I copied the same thing twice and that too incorrectly. Apologies ;-;

And by the way, replace line 52, 53 and 55 with your own values.

It's work but, what do you have to put on the email template for it to read the email and message content sent from the web?

meweedan commented 5 months ago

@mayankjain25 hey man, was there an error with copying/pasting? code randomly ends on line 127

Have updated the code again. Looks like I copied the same thing twice and that too incorrectly. Apologies ;-; And by the way, replace line 52, 53 and 55 with your own values.

It's work but, what do you have to put on the email template for it to read the email and message content sent from the web?

still haven't figured this out yet, would appreciate your help if you managed to figure out how to read the user email and message contents.

mayankjain25 commented 5 months ago

@mayankjain25 hey man, was there an error with copying/pasting? code randomly ends on line 127

Have updated the code again. Looks like I copied the same thing twice and that too incorrectly. Apologies ;-; And by the way, replace line 52, 53 and 55 with your own values.

It's work but, what do you have to put on the email template for it to read the email and message content sent from the web?

still haven't figured this out yet, would appreciate your help if you managed to figure out how to read the user email and message contents.

I remember having a hard time making the perfect settings for EmailJS to work on their website/dashboard. Will share the changes that I made as soon as possible.

meweedan commented 5 months ago

@mayankjain25 hey man, was there an error with copying/pasting? code randomly ends on line 127

Have updated the code again. Looks like I copied the same thing twice and that too incorrectly. Apologies ;-; And by the way, replace line 52, 53 and 55 with your own values.

It's work but, what do you have to put on the email template for it to read the email and message content sent from the web?

still haven't figured this out yet, would appreciate your help if you managed to figure out how to read the user email and message contents.

I remember having a hard time making the perfect settings for EmailJS to work on their website/dashboard. Will share the changes that I made as soon as possible.

I'm still trying to figure it out, any assistance would be greatly appreciated bro :) I got everything working but the {{userEmail}} and {{userMessage}} parts are still rendering empty for some reason.