Sign inGet Started

SMTP

Send Rails email with SMTP

Configure Action Mailer to deliver through Parcel Wing SMTP.

SMTP settings

Copy the exact values from your in-app Settings page. Most accounts use these defaults.

SettingValue
Hostsmtp.parcelwing.com
Port587
SecuritySTARTTLS
Usernameparcelwing
PasswordAny active Parcel Wing API key

Action Mailer

Store your API key in credentials or environment variables, then configure SMTP in production.

config/environments/production.rb

# config/environments/production.rb
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.parcelwing.com",
port: 587,
user_name: "parcelwing",
password: ENV.fetch("PARCELWING_API_KEY"),
authentication: :plain,
enable_starttls_auto: true,
}
 
config.action_mailer.default_options = {
from: "Acme <[email protected]>",
}

Use a verified sender

Your from address should belong to a sending domain that is verified in Parcel Wing. This keeps SPF, DKIM, and DMARC aligned for better deliverability.

Troubleshooting

  • Use port 587 with STARTTLS, not implicit TLS on port 465.
  • Use parcelwing as the username and an active Parcel Wing API key as the password.
  • Make sure the sender address uses a verified sending domain.
  • If a vendor has a test email button, send a test before enabling production email.