diff --git a/server/auth/signup.js b/server/auth/signup.js index 3b07d7a..56b95ce 100644 --- a/server/auth/signup.js +++ b/server/auth/signup.js @@ -104,12 +104,12 @@ const registerPendingSignup = async (body, hash, token) => { const sendValidationEmail = async (email, username, token) => { const addr = `${process.env.WEB_PROTOCOL}://${process.env.WEB_ADDRESS}/auth/validation?username=${username}&token=${token}`; - const msg = `Hello ${username}! - -Please visit the following link to validate your account: ${addr} - -You can contact us directly at our physical mailing address here: ${process.env.MAIL_PHYSICAL} -`; + const msg = + `Hello ${username}!\n\n` + + `Please visit the following link to validate your account: ${addr}\n` + + (process.env.MAIL_PHYSICAL + ? `\nYou can contact us directly at our physical mailing address here: ${process.env.MAIL_PHYSICAL}\n` + : ``); let transporter, info;