Can I send emails from my website?

Yes, it is possible to send emails from your website via a script.

There are different ways you can do this. We recommend that you use Method 1 as described below.


Method 1 - Send emails using PHP's mail function (Recommended)

We recommend that you use PHP's mail function for doing this:

Learn more about PHP's mail function

Note that the "To" or "From" address must be an active email account on your domain with one.com.


Method 2 - Send emails using SMTP

If you prefer to send emails using SMTP via a script on your website, the configuration should use this info:

  • Outgoing server name: mailout.one.com
  • Port and encryption:
    - 587 with STARTTLS (recommended)
    - 465 with SSL/TLS
    - 25 with STARTTLS or none
  • Authentication: your email address and password

Note The "From" address must be an active email account on your domain with one.com, and must match the email account used for authentication.


Don't have an email address yet? With our email hosting solution, you can mail professionally with your domain to all your contacts.

Add to cart

Related articles:

How do I create a form with PHP?

How do I send newsletters using one.com's mail service?

Was this article helpful?

Can’t find what you are looking for?

Start a chat

It's the quickest way to get in touch, every day of the year.

Give us a call

Available on weekdays from 10am to 2pm (UTC).