SMTP Integration Quickstart
Get up and running with Motorical SMTP in under 2 minutes.
SMTP Credentials
| Setting | Value |
|---|---|
| Server | mail.motorical.com |
| Port | 2587 (custom) or 587 (standard) |
| Security | STARTTLS |
| Username | Your Motor Block username |
| Password | Generated password from Motor Blocks dashboard |
Step 1: Install Dependencies
- Node.js
- Python
- PHP
npm install nodemailer
pip install secure-smtplib
composer require phpmailer/phpmailer
Step 2: Send Your First Email
- cURL
- Node.js
- Python
swaks \
--server mail.motorical.com \
--port 2587 \
--auth-user "your_motor_block_username" \
--auth-password "your_motor_block_password" \
--tls-optional \
--header "Subject: Hello from Motorical SMTP!" \
--body "This email was sent using Motorical SMTP."
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransporter({
host: 'mail.motorical.com',
port: 2587,
secure: false,
auth: {
user: 'your_motor_block_username',
pass: 'your_motor_block_password'
}
});
const mailOptions = {
subject: 'Test Email',
text: 'Hello from Motorical!'
};
transporter.sendMail(mailOptions);
import smtplib
from email.mime.text import MIMEText
server = smtplib.SMTP('mail.motorical.com', 2587)
server.starttls()
server.login('your_motor_block_username', 'your_password')
msg = MIMEText('Hello from Motorical!')
msg['Subject'] = 'Test Email'
server.send_message(msg)
server.quit()
Step 3: Verify
Check your Motorical dashboard for delivery confirmation, or use the API to query logs:
curl -H "Authorization: Bearer $TOKEN" \
"https://api.motorical.com/api/public/v1/motor-blocks/$BLOCK_ID/logs?limit=5"
tip
Store credentials securely using environment variables or a secrets manager. Never commit them to source control.