Custom Variables
How to access custom variables

How to set up custom variables with SMTP

Last updated
Was this helpful?


Last updated
Was this helpful?
Was this helpful?
curl --ssl-reqd \
--url 'smtp://send.smtp.mailtrap.io:587' \
--user 'api:49ad7a716f18d9c64xxxxx' \
--mail-from '[email protected]' \
--mail-rcpt '[email protected]' \
--upload-file - <<EOF
To: Mailtrap Sandbox
Subject: custom header
X-MT-Custom-Variables: {"variable name":"variable value"}
Content-Type: multipart/alternative; boundary="boundary-string"
--boundary-string
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
You are awesome!
EOF