Live Website: https://tosinirl.github.io/IRLMEDIA/
Your website is deployed on GitHub Pages. Follow these steps if you need to re-configure the email form.
To make the booking form send emails to you, you need a free EmailJS account.
- Create Account: Go to EmailJS.com and sign up for a free account.
- Add Service:
- Click "Email Services" -> "Add New Service".
- Select "Gmail" (or your preferred provider).
- Click "Connect Account" and follow the prompts.
- Click "Create Service".
- Copy the
Service ID(e.g.,service_xyz123).
- Create Email Template:
- Click "Email Templates" -> "Create New Template".
- Design your email. Use these variables in the template (they match your code):
{{to_name}}(This will be "PureHearted Studioz"){{from_name}}(Customer's Name){{from_email}}(Customer's Email){{service}}(Selected Service){{date}}(Selected Date){{message}}(Full message string)
- Save the template.
- Copy the
Template ID(e.g.,template_abc456).
- Get Public Key:
- Go to "Account" (click your name in top right).
- Copy the
Public Key.
You need to paste your keys into the code I wrote.
- Open
index.html.- Find
emailjs.init("YOUR_PUBLIC_KEY");. - Replace
YOUR_PUBLIC_KEYwith the key you copied in Step 1.4.
- Find
- Open
script.js.- Find
emailjs.send('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', templateParams). - Replace
YOUR_SERVICE_IDwith the ID from Step 1.2. - Replace
YOUR_TEMPLATE_IDwith the ID from Step 1.3.
- Find
This site is hosted on GitHub Pages. Any changes pushed to the gh-pages branch will automatically update the live site.