How to Send Emails from Your Server


How to Send Emails from Your Server

Who is this article for?

The main purpose of this article is to help you send us a test email, so Winning Email can perform comprehensive tests on your email deliverability setup, and then let you know if there's any problems. Read more about this on the right-side of your account page.

But this should also be useful for anyone who needs to send emails from their web/mail server, for whatever reason.

I have cPanel

This is the ideal scenario. If you have cPanel, it should be super easy to send emails (assuming cPanel is configured properly and there's not conflicts with other linux packages or services).


1. Log into cPanel

There's a few different ways to login to cPanel, such as:

https://YourServerName.com:2083
https://YourServerIPAddress:2083

If neither of these work, try 'http' instead of 'https', and if that still doesn't work, contact your hosting support.


2. Email Accounts

cPanel - Email Accounts

Click the "Email Accounts" link inside the cPanel interface.


3. Access Webmail

cPanel - Access Webmail

Select the email address you want to send a message from. If you don't already have one setup, you can add it using the form at the top of the page.

Then click the "More" menu on its right-hand side and select "Access Webmail".

You'll then have to login to that email account.


4. Email Clients

cPanel - Email Clients

You will typically have the choice between a few different email clients. For this example, we're using Horde.


5. Sending a Message

horde - New Message

  1. Click the "New Message" button on the top left.
  2. In the popup window that appears, enter the recipient email, a subject, and body
  3. Click "Send"
  4. That's it!

My server is running Linux

If your web/mail server is running Linux, but you don't have a nice GUI like cPanel installed, you should still be able to send emails from the command-line.


1. SSH into your server

Hopefully you already know how to do this, but if you don't, here is a decent tutorial.


2. Send the email

Most servers have the sendmail application installed out-of-the-box, so you should be able to run this command:

mail -s "test email subject" your-email-id@verify.winning.email

Of course replace the email address with whatever recipient address you'd like. You'll have to hit enter, then Ctrl-D to send the message.

If this command fails, check out this guide for installing sendmail.

My server is running Windows

This article from Microsoft should help you. It's written for Windows Server 2003 but should still work for more recent versions.

I still can't get it to work!

Contact us and we'll be glad to help :)