Create or Update
The Mail Channel Create & Update functionality allows users to create new Mail Channels or modify existing ones. Both actions are performed on the same page, with the only difference being whether the fields are blank (create) or pre-filled (update).
When Creating a Mail Channel
- Accessed by clicking the Create button located at the top-left corner of the Mail Channel page.
- A new page opens where the user must enter mail channel details.
- All fields are empty by default.
When Updating a Mail Channel
- Accessed by clicking the Edit button in the Action column of the mail channel list.
- The same page opens, but with pre-filled values from the selected mail channel.
- The user can modify fields and update the template.
Fields
Step 1
-
Mail Channel Name (required)
A short name to identify the Name. -
Website (required)
Select website which is used to deploy code version on the domain. -
Mail Service
Select the mail service that will be used to send emails. -
Tracking Domain (required if mail service is HyperMail)
Select the tracking domain associated with the mail channel. -
Mail Template
Select the mail template that will be used to send emails. -
Domain
Enter the domain to associated with the mail channel to mail service. -
Email Count
Email Count to create email on cpannel for send email. SQL Queries
-- Create (Insert) Mail Channel Query
-- (Write insert query here)
-- Update Mail Channel Query
-- (Write update query here)
Step 2
Domain Management with Mail Service Providers
When adding or updating a domain for a mail channel (such as Mailgun, Hypermail, or Postmark), the system integrates with the selected email service provider using their REST API and it returns DNS records that gets stored in the database and later it gets added into the DNS provider.
How It Works
-
Add Domain:
When you enter a new domain and select a mail service provider, the system makes a REST API call to the provider (e.g., Mailgun, Hypermail, Postmark) to add the domain to your account. -
Retrieve DNS Records:
After the domain is added, the provider returns the required DNS records. that must be configured in your DNS settings to verify and authenticate the domain. -
Display DNS Records:
The system displays these DNS records to the user, who must then add them to their domain's DNS configuration. -
Domain Verification:
Once the DNS records are correctly set up, the mail service provider will verify the domain, enabling it for sending emails.
SQL Queries
-- Create (Insert) Mail Channel Query
-- (Write insert query here)
-- Update Mail Channel Query
-- (Write update query here)
Step 3
Domain Management with WHM cPanel & FTP
After the domain is registered with the mail service provider and DNS records are configured, the next step is to set up hosting and deployment for each domain.
-
Create cPanel Account:
For each domain, the system creates a new cPanel account using WHM (Web Host Manager). This provides a dedicated hosting environment for the domain. -
Create FTP Account:
An FTP account is created for each cPanel account. This allows secure file transfer access to the domain's hosting space. -
Deploy Code to cPanel:
The system automatically deploys the required codebase to the domain's cPanel account using the FTP credentials. This ensures the website or application is live and ready for use.
SQL Queries
-- Create (Insert) Mail Channel Query
-- (Write insert query here)
-- Update Mail Channel Query
-- (Write update query here)