Email-Icon Created with Sketch. Group 3 Created with Sketch. Domains-SVG-Box Created with Sketch. Domains-SVG-Box Created with Sketch. Domains-SVG-Box Created with Sketch. Hosting-SVG-Box Created with Sketch. Hosting-SVG-Box Created with Sketch. Icon-Internet Created with Sketch. Hosting-SVG-Box Created with Sketch. Icon-Internet Created with Sketch. Icon-Internet Created with Sketch. Trust Pilot Stars Created with Sketch. 1-5-million Created with Sketch. Control-panel-Icon Created with Sketch. WSB-Brush Created with Sketch. WSB-Brush Created with Sketch. WSB-Brush Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. icon-slider-next Created with Sketch. icon-slider-prev Created with Sketch. Webmail-icon Created with Sketch. heart Created with Sketch. Open-24-7 Created with Sketch. open24 Created with Sketch. 24 7 trusted Created with Sketch. Fill 1 Created with Sketch.

Can I send mails 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 rather want 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 TLS
    - 25 with STARTTLS or none
  • Authentication: your email address and password

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


Related articles:

How do I set up FormMail?
How do I send newsletters using One.com's mail service?