How To Setup Email Integration With Sendy?
This integration requires Sendy REST API Add-On installation on Sendy server.
More information can be found here: https://github.com/gellu/sendy-api
REST API Add-On Installation Instructions (Getting Your Sendy API URL)
- Create a new sub-domain for Sendy Add-On (for example: sendy-api.yourdomain.com).
- Download Sendy REST API Add-On: https://github.com/gellu/sendy-api/archive/master.zip
- Unzip archive. You will see “sendy-api-master” folder. Copy all files from folder to server via FTP (in sub-domain directory)
- Now you need to install Composer.
- Composer Installation (https://getcomposer.org/download/ )
- Login on server via ssh and run:
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === 'fd26ce67e3b237fffd5e5544b45b0d92c41a4afe3e3f778e942e43ce6be197b9cdc7c251dcde6e2a52297ea269370680') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); }"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Known error troubleshoot
Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again:
The suhosin.executor.include.whitelist setting is incorrect. Add the following to the end of your `php.ini` or suhosin.ini
(Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini): suhosin.executor.include.whitelist = phar
The php.ini used by your command-line PHP is: /usr/local/lib/php.ini
If you cannot modify the ini file, you can also run `php -d option=value` to modify ini values on the fly.
You can use -d multiple times.
So, type command: “ nano /usr/local/lib/php.ini”
And added line: “ suhosin.executor.include.whitelist = phar”
Then installation should be fine.
- Then please type: “cd /path/to/your/sendy-api-script”.
- After, please run command “php composer.phar install”
Then please run command: “ nano app/config-env-dist.php” and fill fields:
'host' => '',
'port' => '',
'name' => '',
'user' => '',
'pass'=> ''
with values which used for Sendy configuration.
Please note, that default port is ' 3306' and host is 'localhost'
'name' – database name
'user' – database user
'pass' – database password
To save document in nano please type: «ctrl + o» then hit «Enter» - Then rename file with command: «mv app/config-env-dist.php app/config-env.php»
- Please add this URL in LeadsTunnel (EX. your-subdomain.yourdomain.com/app) in LeadsTunnel's APP URL field.
Getting Sendy APP Key
- Please visit your Sendy account and click button that says "Brand" on the top-right corner of your admin area.
- Click on the "RSS Feed Button" located at the right-side of your screen under your top navigation bar.
- A pop-up window will show details like the following screenshot:
- The URL listed in the Campaigns RSS feed contains your APP Key details.
- Copy the APP key between the "a=" and "&i".
- Here's an example from the screenshot above: e6VOrdgeGERTGEVDGQIowGO5WlYFr
- Paste your APP Key into Zero Up™ APP Key field.
- Click "Save".