Integrations
A

Send ASP.NET mail through SecureSMTP

NuGet package or System.Net.Mail SMTP. Razor email templates render fine, all authenticated.

Code setupLiveBackend

Set up in under five minutes

Same flow for every integration: account → credentials → paste into ASP.NET → test send.

  1. 1

    Create a free SecureSMTP account

    Sign up at securessmtp.com/signup. Free tier covers 100 emails/month — no card required.

  2. 2

    Create an API key

    Dashboard → Settings → API keys → Create. Store it in your environment (e.g. SECURESMTP_API_KEY in .env). Never commit it.

  3. 3

    Install or import the SDK

    dotnet add package SecureSMTP.Net · or use System.Net.Mail.SmtpClient pointed at smtp.securessmtp.com.

  4. 4

    Make your first send

    Copy the snippet below into a server-side endpoint or background job. Replace the to/subject/html with your own values.

  5. 5

    Test, then ship

    Trigger your endpoint in dev. Check the dashboard activity feed to confirm the send. Ship to prod — same code, no config swap.

ASP.NET minimal APIFull API docs →
// Program.cs
using System.Net.Mail;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.MapPost("/api/contact", async (Contact data) => {
    using var smtp = new SmtpClient("smtp.securessmtp.com", 587);
    smtp.Credentials = new System.Net.NetworkCredential(
        Environment.GetEnvironmentVariable("SECURESMTP_USER"),
        Environment.GetEnvironmentVariable("SECURESMTP_PASS"));
    smtp.EnableSsl = true;
    var msg = new MailMessage("site@yourdomain.com", "you@yourdomain.com",
                              "Contact", data.Message);
    await smtp.SendMailAsync(msg);
    return Results.Ok();
});

record Contact(string Message);

What you get

SPF + DKIM + DMARC aligned

Every send is authenticated. Gmail, Outlook, Apple Mail, Yahoo all see your real domain — never wordpress@yourhost.

AI abuse + spam scoring

Inline classifier catches outbound spam in <80ms. Your IP reputation stays clean even when forms get hammered.

Live delivery dashboard

Every send, open, click, bounce — per-platform, per-form, per-recipient. Webhook events you can pipe into your own analytics.

Queues during outages

If a downstream provider goes dark, we hold the message and retry. Never lose a form submission.

FAQ

How long does setup take?

Five to ten minutes including domain DNS verification. The actual ASP.NET configuration is a single panel.

Do I need to change my domain or sender address?

No. ASP.NET keeps sending from whatever email you configure — we just sign and route it through authenticated infrastructure. Your customers see your real domain.

What happens if SecureSMTP has an outage?

Our relay queues messages and retries with exponential backoff for up to 72 hours. Submissions are never silently dropped.

Can I use my own domain for sending?

Yes — and we recommend it. Verify your domain in the dashboard (one TXT record + one CNAME for DKIM) and everything sends from your address with full SPF + DKIM + DMARC alignment.