Implementing email sending from your app
There are a few steps you need to take if you want to send email from your app.
Let’s get started…
Before you can begin integrating with SMTPServer, you must first decide whether to use SMTP Server or our REST API. Both methods will ensure that your email is sent, but there are variations between them. Here is a table to assist you in deciding which strategy is best for you.
Options | Rest API | SMTP Server |
---|---|---|
Easy to migrate | No | Yes |
Big change in code | Yes | No |
Codding knowledge | Required | Not Required |
Need Upto date with SMTPServer | Yes | No |
Use our full customizations option | Yes, Full access | Limited Option to use |
Response Data | Get all data in response | Limited data in response |
Once you've determined the appropriate strategy for your situation, it's time to start sending. This document will focus solely on SMTP Server.
After creating an account and paying for an IP address, you will be sent to the dashboard. In order to create your SMTP server, you must execute some actions on the dashboard.
From the dashboard first add your domain.
To verify a domain, a CNAME record must be added to the domain host. Your domain host is typically where you purchased your domain name (like GoDaddy, Enom, or Name.com). In order to map your website, you must add a CNAME record to your domain host.
After you've ordered your IP, you'll need to add your domain, which will be used to send mail. You can finish the portion in three easy steps. At the end of the process, you'll have three CNAME records to add to your domain DNS record. This appears to be as follows:
Now, login to your domain hosting account, and choose your domain. After that, go to the DNS menu and add the records there.
If you're not sure what CNAME records are, ask your domain host for assistance. When you phone or email their support team, you can use the email template below. Follow the steps below to add the CNAME record to your domain host. More detailed information can be found in the documentation provided by your domain host. The DNS settings in our example case are handled by Cloudflare.
3. Go back to the first window or tab and copy the Label/Host field's contents.
4. With your DNS records, paste the copied data into the Label or Host box.
5. Go back to the first window or tab and copy the Destination/Target field's contents.
6. With your DNS records, paste the copied data into the Destination or Target box.
Your record should resemble one of the following tables:
After you've modified the CNAME record, go to the domain menu in the SMTP Server program and verify the status of your domain. If all records have been properly updated, the Active status will be displayed; otherwise, the status will be Pending. If the status remains Pending after 5 minutes, double-check the CNAME record or contact our support team.
When you click on the domain name, you'll see the specifics of your SMTP server if everything is updated successfully. This is how it will seem.
You are now prepared to integrate SMTPServer with your application. This page demonstrates the SMTP Server option for the Mautic Application. The apps are essentially identical. Please refer to the application's official documentation for further information.
Scrolling down this right panel after you have verified your domain will provide the "SMTP Config" settings
Mautic SMTP configuration
After signing in with your Mautic credentials, you will be in the “Dashboard”
From the Dashboard, click on the Settings (gear icon) icon at the top-right corner of the page → A new panel will appear on the right side with some menus and the heading Settings → From the Settings menu, click on the option “Configuration”
A new page named “Configuration” will be loaded with a vertical tab of menus → From the menu click on “Email Settings” → A section will be loaded with “Mail Send Settings”
Now in the “Mail Send Settings” section, select the “Other SMTP Server” option from the drop-down menu of “Service to send mail through” → Then select the “Login” option from the drop-down menu of “SMTP authentication mode” → Then furnish all the required fields with the SMTP Config details found in Point 1 (Where to get SMTP config details?) → Then click on “Apply” and “Save & Close” to save the configuration (You can also Test SMTP settings by clicking the Test connection button)
Now that you have a validated domain, you can send your first email! There are numerous methods available for sending. Let's examine some options for sending a test email. In your integrated application, there is a test mail option. Try sending the email. If all of the preceding procedures are executed correctly, the application will send you a test email.
Once your app has been configured, the most crucial step has been completed; you are now sending emails to your clients from your app reliably.
Even said we recognize that there are occasions when you simply want to ask someone a question. Also, we have you covered in this regard. We have an exceptional support team available to address any issues you may have. Simply send an email to [email protected] and we will respond within a day. Additionally, we offer chat help.