portfolio icon indicating copy to clipboard operation
portfolio copied to clipboard

how do i connect contact page

Open GnaneshNayak opened this issue 1 year ago • 9 comments

im unable setup contact page plz help me withit

GnaneshNayak avatar Mar 22 '23 12:03 GnaneshNayak

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).

mayankjain25 avatar Mar 29 '23 20:03 mayankjain25

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

Idoesfrontend avatar Apr 08 '23 16:04 Idoesfrontend

@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

mayankjain25 avatar Apr 08 '23 19:04 mayankjain25

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

Idoesfrontend avatar Apr 09 '23 05:04 Idoesfrontend

@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.

mayankjain25 avatar Apr 09 '23 16:04 mayankjain25

@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?

Tresillo2017 avatar Apr 26 '23 20:04 Tresillo2017

@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.

meweedan avatar Apr 10 '24 07:04 meweedan

@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.

mayankjain25 avatar Apr 10 '24 07:04 mayankjain25

@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.

meweedan avatar Apr 10 '24 07:04 meweedan