Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const signupUser = async (req, res) => {
const savedUser = await user.save();

const transporter = nodemailer.createTransport({
service: 'Gmail',
service: 'gmail',
auth: {
user: process.env.EMAIL_USER_verification,
pass: process.env.EMAIL_PASS_verification,
Expand All @@ -92,7 +92,7 @@ export const signupUser = async (req, res) => {

const verificationUrl = `${process.env.FRONTEND_URL}/verify/${verificationToken}`;
await transporter.sendMail({
from: 'yash999.connect@gmail.com',
from: `<${process.env.EMAIL_USER}>`,
to: email,
subject: 'Verify your email for YourApp',
html: `<p>Hi ${name},</p><p>Please click the link below to verify your email:</p><a href="${verificationUrl}">Verify My Email</a>`,
Expand Down