Fix broken SMTP: conditional secure flag + revoke exposed credentials#3
Draft
Copilot wants to merge 2 commits into
Draft
Fix broken SMTP: conditional secure flag + revoke exposed credentials#3Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for harshitkulkarnisportfolio ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: kulharshit21 <124128807+kulharshit21@users.noreply.github.com> Agent-Logs-Url: https://github.com/kulharshit21/Portfolio/sessions/3645e2b8-7453-4887-af8e-249657a2cc84
Copilot
AI
changed the title
[WIP] Investigate SMTP server not working issue
Fix broken SMTP: conditional secure flag + revoke exposed credentials
Mar 23, 2026
kulharshit21
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The contact form SMTP was broken due to a publicly committed Gmail App Password (already revoked by Google) and a hardcoded
secure: truethat fails on port 587.Changes
DEPLOYMENT.mdcontained a plaintext Gmail App Password committed to the public repo; replaced with a link to generate a new one. A fresh App Password must be set in the Netlify environment variables.secureflag — Bothnetlify/functions/contact.jsandserver/index.jshardcodedsecure: true, which only works with port 465 (SSL) and breaks with port 587 (STARTTLS).error.messageinstead of the raw error object for more readable function logs.💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.