In this post, I’m going to share my experience with programing with the Jangomail API. I will be working with the Jangomail API and provide a simple command for sending a basic transaction email, including an attachment in HTML.
First, create an account with Jangomail and take note of your login credentials. Next, connect to the Jangomail servers using an FTP program. The host is clients.jangomail.com, and your username/password are the same as your login credentials. Then, add your attachments to the attachments folder.
To send a basic test transaction email, use the following code:
$client = new SoapClient(‘https://api.jangomail.com/api.asmx?WSDL’);
$parameters = array(
‘Username’ => (string) ‘JangomailUsername’,
‘Password’ => (string) ‘JangomailPassword’,
‘FromEmail’ => (string) ‘noreply@yoursite.com’,
‘FromName’ => (string) ‘Your Website’,
‘ToEmailAddress’ => (string) ‘test@test.com’, // Your email address
‘Subject’ => (string) ‘Test Email’,
‘MessagePlain’ => (string) ‘This will show if they don\’t support HTML at their email service.’,
‘MessageHTML’ => (string) ‘
Test HTML Email
Test HTML email text goes here.
‘,
‘Options’ => (string) ‘OpenTrack=True,ClickTrack=True,Attachment1=fileattachment.pdf’
);
try {
$response = $client->SendTransactionalEmail($parameters);
echo “Message(s) sent!”;
} catch(SoapFault $e) {
echo $client->__getLastRequest();
}
Just make sure that your attachment is named exactly the same as it was in the attachments folder. The attachment needs to be uploaded to your Jangomail FTP system to work.
Although the attachment part may be challenging at first, Jangomail’s support system is very helpful, and their developer support is great. If you need further assistance, the Jangomail API documentation provides a wealth of information to help you get started.
As a developer, generic programming can be incredibly useful for creating reusable code. With programming Jangomail, you can easily integrate transactional email functionality into your projects without the need to build everything from scratch. The Jangomail API provides a straightforward and flexible way to interact with the Jangomail service, making it easy to send transactional emails and manage your email campaigns. Whether you’re a solo developer or part of a team, Jangomail can save you a lot of time and effort in the development process.
Overall, Jangomail is an excellent tool for developers looking to add transactional email functionality to their projects. With a user-friendly interface, a robust API, and helpful support documentation, Jangomail makes it easy to get started and customize your email campaigns. Whether you’re a beginner or an experienced developer, Jangomail can help you save time, reduce costs, and improve the effectiveness of your email marketing efforts. So if you’re looking for a powerful and flexible email service provider, Jangomail is definitely worth checking out.
You can find other blog posts in the unarchived section here.
Here’s a link to the Jangomail API documentation: https://api.jangomail.com/