Mailgun + TimeCamp Integrations

Syncing Mailgun with TimeCamp is currently on our roadmap. Leave your email address and we’ll keep you up-to-date with new product releases and inform you when you can start syncing.

About Mailgun

Mailgun is the email automation engine trusted by over millions of websites and application developers for sending, receiving and tracking emails.

About TimeCamp

TimeCamp is a web-based application launched in 2009 by Kamil Rudnicki, a programmer and founder of Time Solutions, to track the activity of computer users and it is dedicated either to freelancers or teams.

TimeCamp Integrations
Connect Mailgun + TimeCamp in easier way

It's easy to connect Mailgun + TimeCamp without coding knowledge. Start creating your own business flow.

  • New Subscriber

    Triggers whenever a new subscriber is added.

  • New Unsubscriber

    Triggers when a current subscriber unsubscribed.

  • New Task or Project

    Triggers when a new task or project is created.

  • New Time Entry

    Triggers when a new time entry is created.

  • Create Project

    Creates a new project.

  • Create Task

    Creates a new task.

  • Create Time Entry

    Creates a new time entry.

  • Update Task

    Updates keywords in an existing task.

How Mailgun & TimeCamp Integrations Work

  1. Step 1: Choose Mailgun as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick TimeCamp as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from Mailgun to TimeCamp.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of Mailgun and TimeCamp

This article is an introduction to the integration of Mailgun and TimeCamp. I will demonstrate how to integrate Mailgun with TimeCamp.

Mailgun is a third-party service which provides email sending capability. It is an alternative to the standard mail(. function in PHP. There are numerous benefits of using Mailgun instead of the native mail(. function.

First, Mailgun offers unlimited free email sending. So if you are sending email for free, use Mailgun! Second, Mailgun offers multiple webhooks, so if your site is open source, you can set up webhooks to integrate with Slack or Mattermost. Finally, Mailgun offers shareable templates, so if you ever want to send out an email with the same text every time, you can simply create a template and apply it to any email address.

In this tutorial, I will be demonstrating how to integrate Mailgun to send emails from a PHP script.

Integration of Mailgun and TimeCamp

First, you will need to sign up for a free account on both Mailgun and TimeCamp. Then, to integrate Mailgun with TimeCamp, you will need to add a webhook to your TimeCamp project. Click on Add a webhook under a project’s settings. Copy the webhook URL and go back to Mailgun. Click on the “New Webhook” button and paste the URL into the form field. You can name this webhook whatever you want, but keep in mind that it must be unique across all of Mailgun’s users. Click on the “Add Webhook” button at the bottom of the page. In order to test the webhook setup, we need to create a new user in TimeCamp and send a message from that user. Create a new user in TimeCamp by going to Users -> Add User. Give the user a username and a password and click on “Create User” button at the bottom of the form. Go back to Settings -> Webhooks and click on the newly created webhook. Next, click on the “Send Test Event” button under “Test Webhook” section. If everything is configured correctly, you should see a message like the one in Figure 1. The message says “Event received. Message sent from [username].” This means that our webhook is working fine! Next we will test sending emails from our application using Mailgun and then we will integrate them with TimeCamp.

Benefits of Integration of Mailgun and TimeCamp

Now that we know the integration works, we can go ahead and send some test messages from our application. To do so, we will create a new file called mailgun_test.php and fill it with the code in Listing 1:

<?php $to = "[email protected]"; $subject = "Test Email From PHP Script"; $message = "This is a test email sent via PHP script."; $headers = "From. [email protected]

"; $headers .= "To. $emailr

"; $headers .= "MIME-Version. 1.0r

"; if (! mail($to, $subject, $message, $headers). { echo("Mail delivery failed! <br />"); } else { echo("Email sent successfully!"); } ?>

As you can see from Listing 1, I have created two variables. $subject and $message . These will be used in the mail(. function to send an email message with our subject line and body content. We also have two other variables. $to and $headers . These variables contain the email address of whom we are sending the message to and our own email headers in case there is a problem with sending emails from our application. Now let us go through each line of Listing 1:

In line 1 , we have included the PHP mail(. function via require . In line 2 , we have set our email headers in case something goes wrong when sending emails from our application through Mailgun. In line 3 , we have set our subject line for our email body content in case something goes wrong when sending emails from our application through Mailgun. In line 4 , we have set our email message body content in case something goes wrong when sending emails from our application through Mailgun. In line 5 , we have called the mail(. function with all of our variables inside of it. Finally, in line 6 , we have checked whether or not the mail(. function was able to send an email or not. If everything worked correctly, you would see a message like the one shown in Figure 2 (below. If everything didn’t work correctly, you would see a message like the one shown in Figure 3 (below.

Figure 2. Successfully Sent Email via PHP Script

The process to integrate Mailgun and TimeCamp may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.