SMTP Server Settings for Sending Email From a Desktop App

Find your mailbox provider's SMTP hostname, port, encryption and authentication settings. Set up a desktop mail account and verify that it sends from the right address.

A cream envelope projecting through a brushed metal mail slot.

To set up outgoing email, get the SMTP server name, port, encryption mode and authentication method from the provider of the mailbox you're connecting. Keep those settings together and use the username that provider specifies. If your mail app offers your provider's supported sign-in flow, it can configure outgoing mail for you. Finish with a new test email to a mailbox you can check.

Find the provider that actually handles your mail

Start with the service where you normally sign in to send email. For a personal Outlook.com address, that's generally easy to identify. For your own domain, the company that registered your domain or hosts your site can be different from the provider operating your mailboxes. An account such as orders@example.com might use a cPanel host, Microsoft 365, Google Workspace or another provider while keeping the same address.

The provider's account portal or your workplace IT help page is a better source than guessing an address such as mail.example.com. If you use a hosting control panel, navigate to the exact mailbox and open its instructions for a mail client. A custom-domain account may use the hosting provider's server name because that name has a valid certificate. Copy the hostname exactly as displayed.

If mail arrives via forwarding, identify the mailbox behind the address. A forwarding address can direct incoming mail to your personal inbox without providing a login or an SMTP service of its own. Ask the party managing it whether it has a mailbox, an authorised send-as identity, or only an incoming route. That determines whether you should add a separate account or set up an identity on an existing provider that permits it.

Mail routing records can point toward a provider, but incoming gateways can differ from outbound submission services. An incoming security gateway can accept mail for your domain without offering a desktop sign-in. For organisation-managed mail, ask specifically for outgoing mail settings for an authorised desktop client. For application-generated email, ask whether the organisation expects a dedicated relay or approved service instead.

Collect the outgoing settings as one configuration

The hostname names a service, such as smtp.provider.example. Put the hostname in the outgoing server field without the web protocol or an account settings page path. Provide the port separately when the app requests it. If a provider gives you two settings combinations, use either complete supported row. The 465 vs 587 guide explains how their encryption handshakes differ.

Most account settings have an outgoing authentication choice alongside the server and port. A supported provider sign-in may open a browser and prompt you to grant permission. Some mailboxes use a provider-issued app password or the mailbox's own password. Use the method the provider specifies for that account and application. A password from the hosting dashboard or your operating system sign-in is separate from a hosted mailbox credential unless the provider explicitly handles them together.

Setting What to record Example of the format
Outgoing server The provider's SMTP hostname for this mailbox smtp.provider.example
Outgoing port The number paired with the specified security mode 465 or 587
Encryption The required mode for that port Implicit TLS or STARTTLS
Authentication The supported login method Provider sign-in, mailbox password or app password
Account username The value required by that mailbox's SMTP service alex@example.com
Sending identity The visible address the account may use alex@example.com or an authorised alias

The table shows example formats, and the actual hostname and login must come from your provider. Store secrets in the account sign-in flow or the app's supported credential storage. A setup reference for your team can include the non-secret values and where to authorise the app without exposing a shared password. People can then repeat the setup for their own mailbox.

Use the settings for your account type

cPanel and other hosted mailboxes

In cPanel, open Email Accounts and the mailbox's connection or client setup instructions. Set Up Mail Client displays a Secure SSL/TLS Settings section. Its example gives port 465 for outgoing SMTP and the complete email address as the username. Use the incoming and outgoing values displayed for your actual account. They can include the server's hostname when the mail domain itself doesn't have a matching certificate.

Check whether the host expects the mailbox password for both incoming and outgoing authentication. Some desktop clients include a switch to use the same credentials. Other clients require that you enter them in both account sections. If an app displays a list of existing outgoing server profiles, assign the entry for this mailbox. A profile left over from a different account can make the Inbox work while the app sends through an unrelated SMTP identity. The cPanel email guide covers both sides of that setup.

When the host supplied a migration notice, check the effective date and whether the advertised host changed. If your old profile still polls an earlier server, tests may show a mixture of old incoming folders and new outgoing settings. Ask the host which settings belong together during the transition. Check the visible From, a fresh received message and the sent folder after the move to establish where each operation reaches.

Gmail and Google Workspace

For third-party mail clients, Google recommends an app that supports Sign in with Google. Follow the Gmail-specific connection flow where it is supported. The sign-in grants access to the connected Gmail account. Signing in to an app's own product account can be a separate action from giving it permission to read and send your Gmail.

Where a device or app uses manual SMTP and the Google account allows it, Google's Workspace device documentation lists smtp.gmail.com on port 465 with its SSL setting or 587 with TLS, using the full address and a permitted app password for that documented workflow. App passwords require 2-Step Verification and can be unavailable under some account policies. A work account can require OAuth or an administrator-approved alternative. Ask the organisation's administrator with the app name and purpose before choosing a relay intended for managed devices.

If Google controls access in the browser, confirm the exact Gmail address before granting mail access. The currently active browser account can differ from the address you typed in the desktop client. Remove the incorrect connection through its account controls if you already connected the wrong mailbox, and use the provider's sign-in flow with the intended account. Review whether the app can read, send or otherwise manage mail as part of the grant.

Outlook.com and work accounts managed by Microsoft

Microsoft documents smtp-mail.outlook.com, 587, STARTTLS and OAuth2/Modern Auth for Outlook.com. Check the sign-in requirements for the actual email client. A program that only accepts a server name and ordinary password doesn't gain OAuth support by entering the correct hostname. Use a supported account connection method that can complete the provider's authorisation.

Exchange Online organisations can control SMTP AUTH separately. Account setup through Outlook or a provider-specific connection can use a different path from a manually configured SMTP client. If this is an organisation address, ask which connection it permits. In a managed organisation, a successful browser login says that you may use webmail, and enabling an external client can still depend on the organisation's policy.

Confirm whether the address is an ordinary user mailbox, an alias or a shared mailbox. A shared mailbox can require a licensed or authorised user's identity and a separate sending entitlement. Use the organisation's directions for connecting it. Saving a different display name or putting the shared address into the From box cannot grant permission to send on behalf of it.

Enter the settings in your desktop mail app

Start in the account setup or server settings for the particular mailbox. If the app can set up the provider automatically, enter the address and see which service it identifies. Confirm the suggested provider and account before proceeding. If the detected settings are inconsistent with the provider's directions, choose manual settings where offered and copy the outgoing row from the official source.

Keep incoming and outgoing sections distinct. An IMAP server often uses an incoming port such as 993. That port belongs to mailbox access. Pasting it into the outgoing port field doesn't turn the IMAP service into an SMTP server. It is normal for a host to publish the same name for both services with different ports. It can also publish distinct names for those roles.

In Swftink's server settings for a directly connected mailbox, check Outgoing server and Outgoing port against the provider's values. Swftink uses implicit TLS for directly configured SMTP on 465 and STARTTLS on other configured ports. For Gmail use the Gmail connection where the account and edition support it. Use the address displayed by Compose in From when you perform your test, particularly inside the unified inbox.

Resist copying all server records from one profile to another just to transfer the outgoing hostname. Try adding or correcting the intended outgoing entry on its own. A migrated profile can carry old send-as identities, default account selection and app-specific credentials that are inappropriate for this mailbox. Review the account name and server association before saving. If the provider no longer recognises an app password from the old computer, authorise the new client using its current guidance.

Keep personal and shared identities easy to distinguish

Give similar account entries descriptive display names in the app where that feature is available. For instance, distinguish Personal, Work and Workshop orders even if two accounts use the same server hostname. Check the full From address for the first few regular messages, especially for replies opened from a combined inbox. Sent-copy location can depend on the underlying mailbox, so match the copy in webmail to the authenticated account.

A mailbox can accept incoming mail addressed to an alias and still require permission to send as that alias. Configure the primary address first and test it. Then add the authorised alternate identity using the provider's actual process. Send a second harmless message and open it from the recipient mailbox. Check how the sender is displayed and where replies are addressed. If a customer sees a different From address than intended, verify your designated identity and provider policy before using it for regular mail.

Verify more than a successful sign-in

Send one short text message from the configured mailbox to a second mailbox you control. Use a unique subject and no attachment for this first test. Open the destination and look for the exact attempt. You can check Junk as well if the app says the outgoing server accepted it and the expected inbox is empty. Verify the visible From. If the destination offers a header view, you can inspect the sender and reply fields privately.

Send a reply from that second mailbox and see where it arrives. This checks that the return address behaves the way you expect and that the receiving side of the desktop account syncs. For an authorised work alias, a reply may intentionally reach a team mailbox. Use the route the organisation expects and confirm it in the actual mailbox before sharing the address with someone else.

Look for the outgoing copy in the provider's webmail Sent view. A desktop app can complete SMTP submission while failing to save a copy, so use the Sent-folder guide if delivery succeeded but the copy is absent. If the app receives an immediate rejection or later bounce, retain that time and error. A test is most useful when you can distinguish its sending, delivery and filing outcomes.

Test the regular workflow after the simple test passes. For example, if you commonly reply from a shared account, send a harmless reply from that view and verify the selected sender. If your provider permits attachments in the way you send, use a small file through the supported interface. One basic test establishes successful submission, while a representative test confirms that routine mail uses the correct account and content.

Replace outgoing settings on a working profile carefully

Before editing a working profile, record its non-secret settings and review the Outbox. Check whether a future meeting reminder or other timed message still needs to go out as planned. A test should concern the new configuration. A waiting message from the old service can be sent under conditions you didn't intend if the program resumes its queue during setup.

If your provider tells you to reauthorise the app after a change, follow the official sign-in. Confirm a plain message works before disconnecting the old route where both are temporarily available. Compare how the old and new profiles show Sent and Drafts. If you have local-only copies that would be affected by removing a profile, keep them through the app's supported export or move operation before disconnecting it.

Worked example for a small business with two providers

Suppose a business receives some customer email through hello@example.com, hosted on its cPanel account. It also uses a managed Microsoft account for staff correspondence. The owner wants one desktop app for both. The cPanel mailbox can have a direct connection using the hosting panel's published SMTP settings and mailbox login. The Microsoft account needs the account setup and authentication permitted by the organisation. Set up each using its own documented process and label them distinctly in the app.

Create two test messages to a mailbox under your control. Send the first from the hosted business address and the second from the Microsoft account. Verify both From addresses from the destination. Reply to each and open the expected receiving mailbox. If only one test fails, the outcome narrows the repair to that account or identity. If both arrive with the same sender address, check which outgoing service each profile uses and which account Compose selected.

Suppose the web designer also has web@example.com forwarded to the hosted business mailbox. That alias may not be an account that can sign in. Before using it for outgoing customer email, check whether the host grants send-as permission on the original mailbox, whether it can create a dedicated mailbox, or whether the forwarding address is meant only for incoming enquiries. Test the specific choice rather than assuming a working incoming alias can supply its own outgoing login.

For the long-term setup, keep a short account inventory. For each address, record the operating provider, whether it is a mailbox or a forwarding address, where browser mail is available, the approved desktop sign-in method, and which team member manages it. For a manually connected mailbox, add the outbound hostname and port. These non-secret details also help when someone retires a hosting account, changes the site host or moves the business to a new provider.

Record who owns the Sent copy too. If the webmail provider automatically files every message it accepts from its desktop connection, a second archive copy can be unnecessary. If the delivery and copy operations are separate, document the server folder the app should use. A handover with an example recipient address and a specific search location gives the next operator something to verify after the business adds a new laptop or changes who uses the shared mailbox.

When you bring another computer into the setup, use the inventory to identify which accounts need formal authorisation and which can connect directly. If the mail provider issues one app password per device, use a credential meant for the new device under its documented policy. Check the default From on the new machine and do the two simple tests again. A profile name can be portable while its authorisation remains specific to one device.

Use the first error to pick the next check

A server name resolution error can mean the hostname was misspelled or cannot be resolved on the current network. A timeout can mean the documented service is unreachable from that network. A certificate error points to hostname, trust or server certificate configuration. A successful TLS connection followed by an authentication rejection points toward the account's login and authorisation settings.

If the server rejects the From address, repeat the test with the account's primary address and a new subject. A success there suggests checking the alias permission. If it rejects one recipient, confirm the complete destination and read the exact reason. If it accepts the test but a later bounce arrives, the diagnostic belongs to the delivery route after submission. Read email bounce codes explained for the recipient-side result.

If you can receive but still can't send, compare one desktop test with one test from webmail using the same authorised sender and a mailbox you can see. Webmail works through a different path, so passing there makes the desktop submission account and network worth checking. Webmail failing too points toward an account, provider or message issue, depending on its error. Record each test result separately when bringing the case to support.

Send support the provider and account type, hostname, port, security mode, app version, time zone and error text in a private ticket. Mention whether the credentials or network recently changed and whether the error is immediate or a later bounce. Leave out passwords, authorisation codes and message bodies. The support team can tell you which configuration it expects and whether it recorded the attempted login or submission.

Sources