This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

📣 Try the fastest hosting platform with pay-as-you-go pricing & 24/7 expert support! MIGRATE NOW →

How To Install Sendy On Cloudways

Updated on December 21, 2021

8 Min Read

Sendy is a self-hosted, PHP-based, newsletter service that lets you send trackable newsletters using Amazon Sending Email Service (SES), a service that allows sending bulk emails at a very low cost. Amazon SES charges $1 per 10000 emails, while the other services charge much more. You can also use different SMTPs to send the newsletter emails.

The best thing about Sendy is that it is domain specific. For a one-time fee of $59 per domain, you could acquire a lifetime license of the service. This tutorial is about acquiring a license for Sendy and installing it on Cloudways. Once you have bought the license for Sendy, follow the steps and install it on Cloudways. Sign up on Cloudways, if you haven’t already! Once done, you need to launch a server with Custom App.

A set of unified APIs and instruments to immediately empower you to ask and oversee package delivery for your platforms with coordinates code tests, debugging and automated testing. Sendy’s API is based on a basic HTTP POST. Utilize the API to coordinate Sendy programmatically with your site or application. A few APIs may require the latest version of Sendy.

Install Sendy on Cloudways

DO installation

Step 1: Create AWS Account

To Install Sendy, you need to create an account on AWS. To do this, follow this guide.

Step 2: Creating Access Credentials on AES

Access Credentials are the “keys” which are essential for installation and are used by Sendy in sending emails through SES. For this, visit here,and create a new user.

Create new users

In the window that opens, type Sendy in the space for the first user and click on Create.

Type Sendy

Once the user is created, a new window will open. Click Download Credentials and save the file to your system. These credentials will be used when installing Sendy.

Download Credentials

If you wish to send emails using SES, you need to follow the steps as defined in this guide. I will be using SMTP to send email with Sendy. Let’s get started with the installation.

Step 3: Installing Sendy on Cloudways

Once you have purchased a license for Sendy, an email with the license number and download link will be sent to you. Click on the download Sendy button and the zip file will be downloaded to your machine.

Download Sendy

Now, go to Cloudways Console and select the server where you wish to install Sendy. Alternatively, add a new server with Custom App, if you want to run Sendy on a standalone server. If you want to add Sendy to an existing server, click on the detail button of your desired server and then click on Add Application.

add application

On the Add Application page, select Custom App, name your app Sendy and select the project that you have created for Sendy. You could also leave the default values.

custom app

Wait for Cloudways to add a new application to your server.

sendy

Once your new application is added, open the FTP client and login with your server credentials (Found at your server in the Master Credentials Tab).

Server Management

Before uploading Sendy to the server, we need to extract it into a folder. Insert your database credentials and your domain, so we can install it. For this, go to the folder in which you have downloaded Sendy and extract the zip file. Once the zip file is extracted, open the folder and head to Include the Folder in the open config.php file. In the config file, fill the database hostname, username, password, and then save it. $dbhost will be localhost, and the rest of the database credentials can be found under your Application Management -> Access Details Tab.

mysql access

 

MySQL Database

After adding database credentials, add your site domain using define(‘APP_PATH’, ‘http://your_Sendy_installation_url‘)

App Path

I will be using FileZilla for this tutorial.

FileZilla

Once it is uploaded, change the upload folder permission inside the Sendy directory to 777. Now, go to your website. Add /Sendy to the URL. The installation page will open.

public_html folder

Once it is uploaded, change the upload folder permission inside Sendy directory to 777 . Now go to your website. Add /Sendy to the url. The  installation page will open.

Install Sendy

Fill the required information, and enter the license key that was given to you upon purchase. In the AWS Access Key ID and Secret, fill in the same values that were downloaded in Step 2. Select your timezone and click on Install. Once installation finishes, a login page will open. Login with the email and password that you used while Installing Sendy and sign in.

Login

Since we will be sending emails using our own SMTPs in the next step, we will now configure Sendy to send emails with SMTPs.

Step 4: Setting Up SMTP in Sendy

Once you are logged in, go to the top-right of the screen where your name is being displayed. Click on the drop-down and from the list, select Settings.

Amazon SES

On the Settings page, remove your AWS details and click on save.

AWS Credentials

Once the settings is saved, go to Brands drop-down button which is visible on the top and click on Add new Brand.

Select brands

On the brand page, fill in the required information. Use the same email address which you will be using to send email via SMTP.

New brand

Once the brand information is filled, go to the SMTP settings and fill the SMTP settings of the email provider you are using. As an example, I will be using RackSpace SMTP.

SMTP Settings

Now, add a new email address in Client Login Details. This email address will be used by this brand when sending campaign emails. Click Save. Your brand is created and is ready to send campaign emails.

Brand

Now that we have created a brand, let us now make a campaign for this brand and send it to our subscribers.

Step 5: Creating and Sending Campaign To Subscribers

When you click on a newly created brand (in our case Cloudways), a new page will open that shows all campaigns that we have created. For now, there will be none. Let us create our first campaign.

Click on Create & Send Campaign button.

All Campaigns

In the new window, fill in the information about the campaign. Attach an image if you like, and your custom Query string to get a reference that the user is coming through Sendy for your analytics. Once done, click Save & Next Button.

Create New Campaign

Query String

Let us now create a list of subscribers who will be getting this email. For this, click on View All list, which is on the left of the page.

View All Listing

At the new page, click on Add new List and hit Enter. Now you can import the emails from a CVS file.

Import Via CSV

You could also add the emails manually.

Add Name and Email

Once you have added the emails of subscribers, head back to the All Campaigns page and click on your Campaign Draft (in my case it is a Giveaway).

Select Campaign

In the Define recipients, double click on your newly created list and click on Send newsletter now!

Define Recipients

Emails will now be delivered to the subscribers that are found in the list.

Nothing as Easy as Deploying PHP Apps on Cloud

With Cloudways, you can have your PHP apps up and running on managed cloud servers in just a few minutes.

What’s Next?

You can use Sendy to create unlimited brands and campaigns and track the number of subscribers who have read your emails.

Let me know if you face any issues in installing and configuring Sendy. I will help you out.

Changing Session Path for Sendy:

If you are frequently getting ‘Outgoing connections blocked’ error, then this is the issue of session path, as stated in the official Sendy Troubleshoot Solutions. So, if you are facing the same problem in Cloudways, here is how you can solve it.

Follow these steps:

Launch SSH Terminal from Server Management and Login with your Master Credentials. Once you are logged in, head to the folder where you have installed Sendy using the following command:

cd applications/<folder name>/public_html/sendy

Now create a new folder here and name it session by inserting the following command and give it write permissions:

mkdir session chmod 77 session

In this folder we will save our Sendy sessions. Now head to includes folder by following command:

cd includes

Now in this folder we will edit Sendy header.php file and there we will set our session path using ini_set() function. Now open header.php with the following command.

vim header.php

sendy header

Now press ‘i’ to start editing the file. Paste the following line of code before include:

ini_set('session.save_path', '/home/master/applications/<folder name>/public_html/sendy/session');

include('includes/functions.php');

Change the with your folder name. Once the line is added, press Esc and then type:wq to save and exit the file. The session path is now changed, and your session will now store it in the session folder.

Update:

In case the above method does not work, you could refer to the excellent comment by Butch Ewing.

Conclusion

Sendy is one of the best alternatives to Mailchimp Software. In accordance with its functionality and administrations, Sendy is the superior alternative for email marketing. It provides you with incredible features to track opened emails, not those marked as spam emails, and identify how often these numerous emails are clicked on by the client.

Share your opinion in the comment section. COMMENT NOW

Share This Article

Shahzeb Ahmed

Shahzeb is a Digital Marketer with a Software Engineering background, works as a Community Manager — PHP Community at Cloudways. He is growth ambitious and aims to learn & share information about PHP & Laravel Development through practice and experimentation. He loves to travel and explore new ideas whenever he finds time. Get in touch with him at [email protected]

×

Get Our Newsletter
Be the first to get the latest updates and tutorials.

Thankyou for Subscribing Us!

×

Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Want to Experience the Cloudways Platform in Its Full Glory?

Take a FREE guided tour of Cloudways and see for yourself how easily you can manage your server & apps on the leading cloud-hosting platform.

Start my tour

CYBER WEEK SAVINGS

  • 0

    Days

  • 0

    Hours

  • 0

    Mints

  • 0

    Sec

GET OFFER

For 4 Months &
40 Free Migrations

For 4 Months &
40 Free Migrations

Upgrade Now