Back to main menu

Product

Send email with MATLAB

MATLAB is a very powerful engineering tool for simulations and computations, but did you know you can use it for email as well?

Hermes looks at a screen with a bin full of emails

PUBLISHED ON

PUBLISHED ON

MATLAB is a very powerful engineering tool for simulations and computations.  For those who use it - and use it extensively - you know the power that it can offer and basically how awesome it is.

So, how do you send email through MATLAB?  First thing’s first -- sign up for a Mailjet account here to access Mailjet’s SMTP server.  After signing up and verifying yourself, head over to your SMTP settings.  Here, you will find your username (api key) and your password (secret key) which you input into ‘my_username’ and ‘my_password’, respectively.  Lastly, change ‘my_default_email_address’ to the email address tied to your existing Mailjet account (if you just signed up, use the one you signed up with).

And that’s that!  Customize the email recipient, the subject line, and the body of the email in the ‘sendmail’ function.

P.S. If you wish to use something other than Mailjet, you can use any SMTP service - Gmail, Hotmail, Yahoo, etc.  Just fill in the aforementioned settings with the appropriate values from the SMTP service you wish to use.

By Tyler Nappy

Popular posts

Hermes rides a firework next to a Goddess in front of a night sky with more fireworks

Email best practices

6 min

Top email marketing trends for 2022

Read More

Hermes on a moped delivering mail to a mailbox

Email best practices

8 min

Reducing email’s carbon footprint

Read More

Mother's day gift for Hera

Marketing

15 min

Marketing calendar 2025: Dates you shouldn’t miss this year

Read More

It's never been easier to build connected experiences. Start sending with Mailjet today.Get started on your path
CTA icon