DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk3 min

Sending Email with IIS: SMTP and Pickup Directory Options

IIS applications can submit mail to an SMTP server or store it for later pickup. Learn which approach fits, what settings to configure, and why the legacy IIS SMTP virtual server needs caution.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can send email from an IIS-hosted application either by submitting it to an SMTP server or by writing it to a pickup directory for another process to deliver. These are application delivery options; they are distinct from the legacy IIS SMTP virtual server, which Microsoft describes as a relay agent rather than a complete mail-delivery system.

Choose how the application will hand off messages

Microsoft documents two approaches for IIS application email: network delivery through an SMTP server, or pickup-directory delivery for later processing. The right choice depends on whether a mail server is available to accept messages and whether a separate process can collect files from disk. See Microsoft’s application email configuration guidance.

As an Amazon Associate I earn from qualifying purchases.

Approach How it works What it needs
Network delivery The application submits each message to an SMTP endpoint. An operational SMTP host and any port and authentication details that host requires.
Pickup directory The application writes messages to disk for later delivery. A suitable downstream application or user to process the stored messages.

Network delivery is the direct route when an SMTP service is ready to accept the application’s messages. Pickup-directory delivery avoids a live SMTP submission at the moment the application creates a message, but it does not deliver mail by itself: a downstream processor must handle the files.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure application-level SMTP delivery

Set the sender address and choose network delivery in the application configuration. For network delivery, provide the SMTP host, port, and credentials if the host requires authentication. Microsoft’s SMTP network settings reference lists the host, port, username, password, and default-credentials settings. It gives port 25 as the default; that is a configuration default, not a promise that a particular provider accepts connections on port 25.

#1 Best Overall
Tripp Lite SRSCREWS Rack Enclosure Server Cabinet Threaded Hole Hardware Kit
  • Threaded hole hardware kit - 50 each #12-24 screws
  • Fastens equipment to threaded hole rack mount rails
  • Compatible with all #12-24 threaded hole racks
  1. Identify the sender address the application should use.
  2. Select network delivery rather than pickup-directory storage.
  3. Enter the hostname and port supplied by the SMTP service you intend to use.
  4. Configure the authentication options that service requires. Do not assume anonymous submission or a particular credential method is accepted.
  5. Test delivery against that service and investigate any rejection using its response and configuration requirements.

There is no universal SMTP hostname, authentication method, or port for IIS. The mail provider’s requirements take precedence over the framework’s default values.

Use pickup-directory delivery when another process will deliver mail

With pickup-directory delivery, the application stores messages on disk instead of submitting them to an SMTP endpoint immediately. Configure the pickup directory in the application’s mail settings, then ensure a separate application or user is responsible for processing the messages. Microsoft’s email configuration reference describes this option. Without a functioning downstream pickup processor, files in the directory remain stored rather than reaching recipients.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Understand the legacy IIS SMTP virtual server

Some administrators use “IIS email” to mean the IIS SMTP virtual server rather than an application’s SMTP settings. Microsoft describes the legacy service this way: “The IIS SMTP service is a relay agent only.” It forwards messages to another SMTP server for delivery; it is not interchangeable with the application-level configuration described above. The legacy ASP.NET documentation identifies the component as part of IIS 6.0 and cautions against using it to relay to on-premises Exchange or Office 365. It directs those scenarios to supported Exchange Server versions. Confirm current support for the exact Windows Server version and mail service before designing a relay around this component.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Microsoft’s older instructions for configuring the virtual server cover access, outbound security, and a smart host (also called a relay host). Those steps are specific to the legacy interface and are not a universal configuration recipe for current Windows Server releases. See Microsoft’s legacy IIS SMTP guidance only in the context of the platform it documents.

Restrict relay access

An improperly open relay can be abused to send unsolicited email. Microsoft warns that anonymous access combined with mail relaying increases this risk; its guidance recommends limiting relay to specified servers. Configure an allowlist containing only the application hosts that need to submit messages, rather than permitting unrestricted relay. Microsoft’s SharePoint outgoing-email guidance explains the relay restriction procedure in its product context.

Quick Recap

Bestseller No. 1
Tripp Lite SRSCREWS Rack Enclosure Server Cabinet Threaded Hole Hardware Kit
Tripp Lite SRSCREWS Rack Enclosure Server Cabinet Threaded Hole Hardware Kit
Threaded hole hardware kit - 50 each #12-24 screws; Fastens equipment to threaded hole rack mount rails
$23.99
  • Allow relay only from known application server IP addresses.
  • Do not treat anonymous access as a reason to allow any host to relay.
  • Review the configured allowlist when application servers or network addresses change.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.