How to add description in sendy mail
Sendy is a popular email marketing tool that allows you to send targeted and personalized emails to your subscribers. Adding a description to your Sendy mail campaign is a great way to provide more context and information to your subscribers. Here's how you can add a description to your Sendy mail campaign:
Method 1: Using the Sendy Web Interface
- Log in to your Sendy account and go to the "Campaigns" tab.
- Click on the "Create Campaign" button to create a new campaign.
- Fill in the required information, such as the campaign name, subject line, and from name.
- In the "Content" section, click on the "Add Content" button.
- Select the "Text" or "HTML" option, depending on the type of content you want to add.
- In the content editor, add your description text. You can format the text using the available tools, such as bold, italic, and links.
- Click on the "Save" button to save your changes.
Method 2: Using the Sendy API
If you're using the Sendy API to send your emails, you can add a description to your campaign by including the description
parameter in your API request.
Here's an example of how you can add a description using the Sendy API:
<?php
require_once 'Sendy.php';
$sendy = new Sendy('your_sendy_api_key', 'your_sendy_api_secret');
$campaign = array(
'name' => 'My Campaign',
'subject' => 'My Subject',
'from_name' => 'Your Name',
'description' => 'This is a test campaign to demonstrate the use of the Sendy API.',
'content' => '<p>This is a test email.</p>'
);
$response = $sendy->createCampaign($campaign);
if ($response->getStatusCode() == 201) {
echo 'Campaign created successfully.';
} else {
echo 'Error creating campaign: '. $response->getBody();
}
?>
In this example, the description
parameter is added to the $campaign
array and passed to the createCampaign
method.
Tips and Variations
- You can add a description to a specific segment or group of subscribers by using the
description
parameter in theaddSegment
oraddGroup
method. - You can also add a description to a campaign template by using the
description
parameter in thecreateTemplate
method. - If you're using a third-party email marketing tool to send your emails, you may need to check their documentation to see if they support adding descriptions to campaigns.