> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autosend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to send emails from WordPress with SMTP

> Configure WordPress to send emails through AutoSend SMTP.

export const APP_PATHS = {
  home: '/',
  quickstart: '/quickstart',
  domainConfiguration: '/domain',
  apiReference: '/api-reference',
  sendEmail: '/api-reference/mails/send',
  bulkSendEmail: '/api-reference/mails/bulk',
  upsertContactApiRef: '/api-reference/contacts/upsert-contact',
  transactional: '/transactional-emails',
  emailActivity: '/transactional-emails/email-activity',
  emailTemplates: '/transactional-emails/email-templates',
  sendingEmail: '/quickstart/email-using-api',
  transactionalTroubleshooting: '/transactional-emails/troubleshooting',
  marketing: '/marketing-emails',
  campaigns: '/marketing-emails/campaigns',
  contacts: '/marketing-emails/contacts',
  contactsIntroduction: '/marketing-emails/contacts/introduction',
  contactsImportCsv: '/marketing-emails/contacts/import-csv',
  contactsLists: '/marketing-emails/contacts/lists',
  contactsSegments: '/marketing-emails/contacts/segments',
  contactsCustomFields: '/marketing-emails/contacts/contact-properties',
  contactsContactProperties: '/marketing-emails/contacts/contact-properties',
  createContactPropertyApiRef: '/api-reference/contact-properties/create',
  listContactPropertiesApiRef: '/api-reference/contact-properties/list',
  getContactPropertyApiRef: '/api-reference/contact-properties/get-by-name',
  deleteContactPropertyApiRef: '/api-reference/contact-properties/delete',
  sender: '/marketing-emails/sender',
  unsubscribeGroups: '/others/unsubscribe-groups',
  webhookIntroduction: '/others/webhooks/introduction',
  webhookEventType: '/others/webhooks/event-type',
  webhookRetries: '/others/webhooks/retries',
  webhookVerifyRequests: '/others/webhooks/verify-requests',
  dynamicTemplates: '/dynamic-templates',
  guides: '/guides',
  sitemap: '/sitemap.xml',
  team: '/others/team',
  automations: '/automations',
  events: '/automations/events',
  sendEventApi: '/api-reference/events/send-event',
  smtpIntroduction: '/quickstart/smtp',
  betterAuth: '/guides/better-auth',
  convexGuide: '/guides/convex',
  templateVariables: '/transactional-emails/variables',
  suppressions: '/others/suppressions',
  rateLimit: '/api-reference/rate-limit',
  nodejsSdk: '/sdk/nodejs',
  smtpIntegrationGuides: '/guides/smtp',
  apiKeys: '/api-keys',
  encryptedPayloads: '/others/encrypted-payloads',
  apiReferenceIntroduction: '/api-reference/introduction',
  lovableGuide: '/ai/integrations/lovable',
  aiIntroduction: '/ai/introduction',
  aiSkills: '/ai/skills',
  aiMcpServer: '/ai/mcp-server',
  aiLovable: '/ai/integrations/lovable',
  aiBolt: '/ai/integrations/bolt',
  aiV0: '/ai/integrations/v0',
  aiReplit: '/ai/integrations/replit',
  mcpClaude: '/ai/mcp-clients/claude',
  mcpCursor: '/ai/mcp-clients/cursor',
  mcpCopilot: '/ai/mcp-clients/copilot',
  mcpWindsurf: '/ai/mcp-clients/windsurf',
  mcpCodex: '/ai/mcp-clients/codex',
  mcpAntigravity: '/ai/mcp-clients/antigravity',
  mcpChatgpt: '/ai/mcp-clients/chatgpt',
  mcpRaycast: '/ai/mcp-clients/raycast',
  domainWarmup: '/marketing-emails/domain-warmup',
  projects: '/projects',
  createAutomationApi: '/api-reference/automations/create-automation',
  migrationSendgrid: '/migration/sendgrid',
  migrationResend: '/migration/resend',
  auth0CustomAction: '/guides/auth0-custom-action',
  accountBilling: '/others/account/billing',
  accountUsage: '/others/account/usage',
  inboundIntroduction: '/inbound/introduction',
  listInboundMessagesApi: '/api-reference/inbound-emails/list-messages',
  getInboundMessageApi: '/api-reference/inbound-emails/get-message',
  downloadInboundAttachmentApi: '/api-reference/inbound-emails/download-attachment',
  replyToInboundMessageApi: '/api-reference/inbound-emails/reply-to-message',
  wikiDailySendingLimit: '/wiki/daily-sending-limit'
};

export const AUTOSEND_PATHS = {
  dashboard: 'https://autosend.com/dashboard',
  apiKey: 'https://autosend.com/account/api-key',
  faqs: 'https://autosend.com/faq',
  marketingEmails: 'https://autosend.com/marketing-emails',
  webhooks: 'https://autosend.com/webhooks',
  composeByAutoSend: 'https://autosend.com/compose',
  emailActivity: 'https://autosend.com/email-activities',
  team: 'https://autosend.com/settings/team',
  pricing: 'https://autosend.com/pricing',
  verifyEmail: 'https://autosend.com/compose/email-builder?template=verify-email',
  welcomeEmail: 'https://autosend.com/compose/email-builder?template=welcome-email',
  productUpdate: 'https://autosend.com/compose/email-builder?template=product-update',
  newsletter: 'https://autosend.com/compose/email-builder?template=newsletter',
  automations: 'https://autosend.com/automations',
  globalSuppressions: 'https://autosend.com/suppressions/global',
  signup: 'https://autosend.com/signup',
  domains: 'https://autosend.com/settings/domains',
  smtpKey: 'https://autosend.com/settings/smtp',
  logoKit: 'https://asend.email/logo',
  contactsPage: 'https://autosend.com/contacts/list-and-segments',
  accountBilling: 'https://autosend.com/account/billing',
  accountUsage: 'https://autosend.com/account/usage',
  terms: 'https://autosend.com/legal/terms',
  inbound: 'https://autosend.com/email-activities/inbound'
};

<Frame>
  <img src="https://mintcdn.com/autosend-13920f5c/ShG826xifoU92AdE/images/smtp/autosendxwordpress.jpg?fit=max&auto=format&n=ShG826xifoU92AdE&q=85&s=89fd939c69f0bd1a3a0e137c72e4ea7d" alt="AutoSend x WordPress" width="1800" height="600" data-path="images/smtp/autosendxwordpress.jpg" />
</Frame>

WordPress relies on the PHP `mail()` function to send emails by default, which often results in poor deliverability or emails not being sent at all. By configuring WordPress to use AutoSend SMTP, you ensure reliable delivery for password resets, user notifications, contact form submissions, and WooCommerce order emails.

## Prerequisites

<CardGroup cols={2}>
  <Card title="Verified Domain" href="https://autosend.com/settings/domains">
    Make sure you have a verified domain added in AutoSend to send emails from.
  </Card>

  <Card title="SMTP Key" href={AUTOSEND_PATHS.smtpKey}>
    Create a project-specific SMTP key from the SMTP tab in Project Settings.
  </Card>
</CardGroup>

## Configuration

<Steps>
  <Step title="Install WP Mail SMTP Plugin" titleSize="h3">
    Install and activate the [WP Mail SMTP](https://wordpress.org/plugins/wp-mail-smtp/) plugin from your WordPress dashboard.
  </Step>

  <Step title="Access WP Mail SMTP Settings" titleSize="h3">
    Navigate to **WP Mail SMTP** > **Settings** in the WordPress admin sidebar.
  </Step>

  <Step title="Configure From Email and Name" titleSize="h3">
    In the **Mail** section, configure your sender details:

    | Field          | Value                                                      |
    | -------------- | ---------------------------------------------------------- |
    | **From Email** | Your verified email address (e.g., `hello@yourdomain.com`) |
    | **From Name**  | Your sender name (e.g., `Your Company`)                    |

    Enable **Force From Email** to ensure WordPress always uses this address.

    <Note>
      The From Email must use a domain that is verified in AutoSend. For example, if you verified `yourdomain.com`, use an address like `hello@yourdomain.com`.
    </Note>

    <Frame>
      <img src="https://mintcdn.com/autosend-13920f5c/OscVD7WxZrdQ8Gkh/images/smtp/wordpress-step-1.png?fit=max&auto=format&n=OscVD7WxZrdQ8Gkh&q=85&s=9710894f0c13fc2b4ea04d69ff9e7b59" alt="From Email Configuration" width="2236" height="1260" data-path="images/smtp/wordpress-step-1.png" />
    </Frame>
  </Step>

  <Step title="Select Other SMTP as Mailer" titleSize="h3">
    Scroll down to the **Mailer** section and select **Other SMTP**.

    <Frame>
      <img src="https://mintcdn.com/autosend-13920f5c/OscVD7WxZrdQ8Gkh/images/smtp/wordpress-step-2.png?fit=max&auto=format&n=OscVD7WxZrdQ8Gkh&q=85&s=334a2a56bd5030c3c8323bcd5ebdb624" alt="Select Other SMTP" width="2414" height="1154" data-path="images/smtp/wordpress-step-2.png" />
    </Frame>
  </Step>

  <Step title="Enter SMTP Credentials" titleSize="h3">
    Fill in the following SMTP settings:

    | Field              | Value                            |
    | ------------------ | -------------------------------- |
    | **SMTP Host**      | `smtp.autosend.com`              |
    | **Encryption**     | TLS                              |
    | **SMTP Port**      | `587` (or `465` for SSL)         |
    | **Authentication** | On                               |
    | **SMTP Username**  | `autosend`                       |
    | **SMTP Password**  | Your AutoSend SMTP key (AS\_xxx) |

    <Note>
      The SMTP password is no longer your API key. Create a project-specific SMTP key from the SMTP tab in <a href={AUTOSEND_PATHS.smtpKey} target="_blank" rel="noopener noreferrer">Project Settings</a>.
    </Note>

    <Frame>
      <img src="https://mintcdn.com/autosend-13920f5c/OscVD7WxZrdQ8Gkh/images/smtp/wordpress-step-3.png?fit=max&auto=format&n=OscVD7WxZrdQ8Gkh&q=85&s=5e5d10947101a590b0c9301f4a3c8b05" alt="SMTP Credentials" width="2452" height="1418" data-path="images/smtp/wordpress-step-3.png" />
    </Frame>

    Click **Save Settings** to save your configuration.
  </Step>

  <Step title="Send a Test Email" titleSize="h3">
    1. Go to **WP Mail SMTP** > **Tools** > **Email Test**
    2. Enter a recipient email address
    3. Click **Send Email**

    <Frame>
      <img src="https://mintcdn.com/autosend-13920f5c/OscVD7WxZrdQ8Gkh/images/smtp/wordpress-step-4.png?fit=max&auto=format&n=OscVD7WxZrdQ8Gkh&q=85&s=9b4b1c44742f27730168a3a8549902f9" alt="Send Test Email" width="2090" height="1428" data-path="images/smtp/wordpress-step-4.png" />
    </Frame>

    You can also check the <a href={AUTOSEND_PATHS.emailActivity} target="_blank" rel="noopener noreferrer">Email Activity</a> dashboard to verify the email was sent through AutoSend.
  </Step>
</Steps>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Emails not being sent">
    * Verify your SMTP credentials are correct - Check that your sender email domain is verified in
      AutoSend - Ensure **Force From Email** is enabled in WP Mail SMTP settings - Check if your
      hosting provider blocks outgoing SMTP connections
  </Accordion>

  <Accordion title="Authentication failed">
    * Double-check your SMTP key is correct - Ensure you're using `autosend` as the username - Verify
      your SMTP key is active in the <a href={AUTOSEND_PATHS.smtpKey} target="_blank" rel="noopener noreferrer">SMTP Settings</a> - Make sure there are no extra spaces in the
      credentials
  </Accordion>

  <Accordion title="Connection timeout errors">
    * Verify the server address is `smtp.autosend.com` - Try using port `465` with SSL if port `587`
      fails - Contact your hosting provider to ensure SMTP ports are not blocked - Some shared hosts
      block outgoing SMTP; consider upgrading to a VPS
  </Accordion>

  <Accordion title="Plugin conflicts">
    * Deactivate other SMTP or email plugins that may interfere - Check for caching plugins that
      might cache email settings - Test with a default WordPress theme to rule out theme conflicts
  </Accordion>

  <Accordion title="Emails going to spam">
    * Ensure your domain has proper DNS records (SPF, DKIM, DMARC) - Use a professional sender name
      and address - Check your domain reputation in AutoSend - Avoid spam trigger words in your email
      content
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Verify Your Domain" icon="https://mintcdn.com/autosend-13920f5c/nx_wYfWx3qeZwg1C/icons/domain.svg?fit=max&auto=format&n=nx_wYfWx3qeZwg1C&q=85&s=9393f9f9b0f7029e6ba8acf2bc09d864" href="/domain" width="24" height="24" data-path="icons/domain.svg">
    Set up SPF, DKIM, and DMARC for better deliverability
  </Card>

  <Card title="Email Activity" icon="https://mintcdn.com/autosend-13920f5c/nx_wYfWx3qeZwg1C/icons/email-activity.svg?fit=max&auto=format&n=nx_wYfWx3qeZwg1C&q=85&s=2ecad7369f217ee7d03c3d8dfdd36d22" href="/transactional-emails/email-activity" width="24" height="24" data-path="icons/email-activity.svg">
    Monitor your email delivery and engagement
  </Card>

  <Card title="Webhooks" icon="https://mintcdn.com/autosend-13920f5c/nx_wYfWx3qeZwg1C/icons/webhook.svg?fit=max&auto=format&n=nx_wYfWx3qeZwg1C&q=85&s=14ad6675c71731ac04f786559a813ee1" href="/others/webhooks/introduction" width="24" height="24" data-path="icons/webhook.svg">
    Set up webhooks to track email events in real-time
  </Card>

  <Card title="SMTP Introduction" icon="https://mintcdn.com/autosend-13920f5c/nx_wYfWx3qeZwg1C/icons/smtp.svg?fit=max&auto=format&n=nx_wYfWx3qeZwg1C&q=85&s=d1993edda392d54c3f704a9a4bb04442" href="/quickstart/smtp" width="24" height="24" data-path="icons/smtp.svg">
    Learn more about AutoSend SMTP configuration
  </Card>
</CardGroup>
