Mailgun is the email automation engine trusted by over millions of websites and application developers for sending, receiving and tracking emails.
3dcart is a leading open-source shopping cart software package that allows you to create and manage your own online stores in minutes. It is easy to install, use, and manage.
Shift4Shop (formerly 3dcart) IntegrationsMailgun + Shift4Shop (formerly 3dcart)
Create Customer to 3Dcart from New Unsubscriber in Mailgun Read More...Mailgun + Shift4Shop (formerly 3dcart)
Create Product Simple to 3Dcart from New Unsubscriber in Mailgun Read More...Mailgun + Shift4Shop (formerly 3dcart)
Create Order to 3Dcart from New Unsubscriber in Mailgun Read More...Mailgun + Shift4Shop (formerly 3dcart)
Create Customer to 3Dcart from New Subscriber in Mailgun Read More...Mailgun + Shift4Shop (formerly 3dcart)
Create Product Simple to 3Dcart from New Subscriber in Mailgun Read More...It's easy to connect Mailgun + Shift4Shop (formerly 3dcart) without coding knowledge. Start creating your own business flow.
Triggers whenever a new subscriber is added.
Triggers when a current subscriber unsubscribed.
Triggers when a new customer is created.
Triggers when a new order is placed.
Triggers when a new product is created.
Creates a new customer.
Creates a new order.
Creates a new product.
(30 seconds)
(10 seconds)
(30 seconds)
(10 seconds)
(2 minutes)
Mailgun is an email service provider for developers, while 3Dcart is a 3D printing platform that allows users to design their own unique items online.
Mailgun is an email service provider for developers. It helps them with sending emails and managing their messages. It provides a full API and SMTP interface, which means it can be easily integrated into any web or mobile application.
For integration of Mailgun and 3Dcart, we have to create an account on each. First, we create an account on 3Dcart and fill out all the details required. Then we create an account on Mailgun and fill out all the details required too. Afterward, we should set up our account by setting up domains (ex. "domain1.com" and "domain2.com". and sub-domains (ex. "sub-domain1.domain1.com", "sub-domain2.domain2.com". We also have to choose whether the domain is for sending or receiving emails. After we completed the setup, we can move to the next step which is to add our newly created domain to our 3Dcart account. On the other hand, for integration of Mailgun and 3Dcart, we have to fplow these steps:
1.. Login to your 3Dcart account.2.. Click on Settings -> Integrations -> Add New Integration -> Mailgun -> Next3.. Click on Connect with Mailgun -> Log In -> Authorize Application -> Done -> Next4.. Enter Your Email Address -> Choose Domain From List -> Enter Password -> Next5.. Set Up Filters (optional. -> Next6.. Click on Create Integration -> Finish (you will get a verification mail from Mailgun when you click Finish button.3Dcart and Mailgun are integrated successfully now. You can see this in your settings of 3Dcart.Afterwards, we can start sending emails from our 3Dcart account to our subscriber list using Mailgun API. A. To send an email, first, we need to create an instance of Mailgun class named mailgun in PHP. Then we can send an email by calling the method 'send' on this instance of Mailgun class with the fplowing arguments:
1.. $fromEmail – The from email address;2.. $to – The recipient of the message;3.. $subject – The subject of the message;4.. $text – The body text of the message;5.. $htmlBody – The HTML body text of the message;6.. $cc – Additional recipients;7.. $bcc – Additional recipients;8.. $replyTo – Reply address;9.. $headers – Header information of the message;
10.. $options – Additional options for the message (canned responses);
11.. $attachments – Attach files to the message;
12.. $customVariables – Custom variables can be passed in via URL query parameters or POST data.B. Then we can use the “add_event_handler” method to add an event handler for a given event on a specific channel like so:
1.. mailgun->add_event_handler('delivery', 'onDelivery');2.. mailgun->add_event_handler('problem', 'onProblem');3.. mailgun->add_event_handler('metadata', 'onMetadata');4.. mailgun->add_event_handler('open', 'onOpen');5.. mailgun->add_event_handler('click', 'onClick');C. Here are some examples on how we can use Mailgun:
1.. if ($message = mailgun_new_message(. { //create new message object with valid config values2. if ($result = mailgun_send($message. { //send message using the send(. function included with the library3. } else { //handle errors here } } 1. Creating a Message Object. Before we send an email through Mailgun, we must create a new Mailgun Message object using the mailgun_new_message(. function that accepts two arguments (the second argument being optional. The first argument is your configuration array, which contains the information about your account that will be used when you send an email. The configuration array requires three keys. apiKey, domain, and subDomain. For more information on this array, view Mailgun's documentation here . The second argument is your callback URL, which is required for authentication. This argument is optional and defaults to http://127.0.0.1/callback if left blank. 2. Sending a Message. Once you have created your message object using mailgun_new_message(), you can send it using the mailgun_send(. function that accepts only one parameter - your message object! The function returns true if your message was successfully sent or false if there was an error sending your message. If you pass a string as the second parameter of mailgun_send(), it will be used as an error response instead of the default error response returned by Mailgun if there was an error sending your message. 3. Handling Errors. If the call to mailgun_send(. returned false, you can handle this error by checking if there was an error property attached to your message object using code similar to this. if (!$result && !empty($message->error)){ print "There was an error. ".$message->error; } You can find additional information about sending email from within your application in Mailgun's documentation here . For more information on sending email with Mailgun, check out their Send Email documentation and their Sending Email guide . B. Benefits of Integration of Mailgun and 3Dcart 1. Security – This integration can help us secure our user's data since it will prevent us from storing passwords in plain text format in our database anymore; 2. Flexibility – Our customer can change their password anytime they want without going through us; 3. Convenience - It’s very convenient for our customers because they don’t have to login again after they changed their password; 4. Speed - Users could change their own password abd they will not wait for us anymore; 5. Analytics – It helps us know what went wrong when someone tries to open his account unsuccessfully because it contains detailed reports about what happened; 6. Tracking - It makes tracking our customers much easier because we will know what happened to them whenever they tried to login; 7. Performance - This could help us improve performance in our website because we won't have any problem logging in our website anymore; 8. Reliability - We could be sure that every customer has a valid password when they tries to log in in our website; 9. Efficiency - This could really save our time because we won't need to manually change every customer's password anymore; 10. Convenience - It's very convenient for our customers because they don’t have to login again after they changed their password; 11. Security – This integration can help us secure our user's data since it will prevent us from storing passwords in plain text format in our database anymore; 12. Flexibility - Our customer can change their password anytime they want without going through us; 13. Speed - Users could change their own password abd they will not wait for us anymore; 14. Analytics - It helps us know what went wrong when someone tries to open his account unsuccessfully because it contains detailed reports about what happened; 15. Tracking - It makes tracking our customers much easier because we will know what happened to them whenever they tried to login; 16. Performance - This could help us improve performance in our website because we won't have any problem logging in our website anymore; 17. Reliability - We could be sure that every customer has a valid password when they tries to log in in our website; 18. Efficiency - This could really save our time because we won't need to manually change every customer's password anymore; 19. Convenience - It's very convenient for our customers because they don’t have to login again after they changed their password; 20. Security – This integration can help us secure our user's data since it will prevent us from storing passwords in plain text format in our database anymore; 21. Flexibility - Our customer can change their password anytime they want without going through us; 22. Speed - Users could change their own
The process to integrate Mailgun and 3Dcart 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.