BMPERSONAL PORTFOLIO / 2026
THE PERSON. THE IDEAS. THE WORK.

Bakki Mahesh.

Web developer & aspiring cloud engineer

A little introduction, before the work.
BMBakki MaheshWEB DEVELOPER & ASPIRING CLOUD ENGINEER
Back to writing
Web Development

Save the message first. Send the notification second.

An implementation note on this portfolio’s contact pipeline: validation, durable storage, owner notifications, and honest success states.

Portfolio engineeringImplementation notes
Reading preferences
Text size
Line spacing

A form has two separate jobs

The contact experience on this portfolio needs to save a visitor’s message and let its owner know about it. These are separate operations. An email provider can be unavailable while the database is working normally.

The interface therefore confirms a saved message after the database write succeeds. It does not claim that an email was delivered to an inbox.

Validate on both sides

Contact, feedback, project and meeting forms share a server-side schema. A contact message needs a name and reply address. Anonymous feedback can omit both. Project briefs include a project type, budget range and timeline. A meeting request includes a proposed local time and an IANA time zone.

The API rejects fields that do not belong to the selected message type. Client validation helps someone correct a mistake; server validation remains the trust boundary.

Persist before responding

The request passes an origin check, public API rate limiting, a honeypot and an optional Turnstile check. The server then creates a ContactSubmission record in MongoDB. A 201 response means that record was saved.

text
Visitor form
  → server validation and spam checks
  → MongoDB submission
  → 201 response
  → owner notification attempt

Keep email out of the critical success path

Next.js after runs the notification work after the response. The message record stores whether notification delivery is pending, being attempted, accepted by the provider, failed, or not configured.

Missing Gmail credentials do not turn a saved message into a failed contact submission. The administrator can still read it in the inbox. Once delivery is configured, a failed or unconfigured notification can be retried from the private workspace.

Provider acceptance is not the same as delivery to a recipient’s inbox. SMTP retries also cannot promise exactly-once delivery after an ambiguous network failure. A claim on the message prevents concurrent sends; a stable message ID helps identify the same notification.

Private follow-up context

The inbox stores private notes and an optional follow-up date separately from the visitor’s message. These fields are never accepted from a public form. They are editable only through authenticated administrator routes.

Due dates are visible even when email is unavailable. A daily owner-only digest can summarize due follow-ups once delivery is configured.

Keep the visitor informed

Feedback is saved privately. A project enquiry is the start of a conversation, not a contract. A meeting request is not a confirmed booking. The success message should explain the actual result of each action.

This separation keeps the experience useful when an external service fails and makes the administrator’s next action clear.

References

This note describes the portfolio implementation. It does not claim that email delivery is configured or that provider acceptance guarantees inbox delivery.

CONTINUE READING

Another perspective.

Useful portfolio counts without visitor profiles.
All writing Have a thought to share?