How sending works
Using the order confirmation as an example:- After the order, the shop sends the predefined order data to Inxmail.
- Inxmail inserts this data into the email template stored there and sends the email to the buyer.
Which emails can run via Inxmail
Emails related to INQUIRY forms run via the form’s configuration.
Guide: Forms for customer inquiries
Setup
Preparation
First clarify with Inxmail Commerce which of their services you want to use, and pass this scope on to WEBSALE. This is the only way to determine in advance whether the interface can cover everything you are planning. You also make the settings on the Inxmail side in advance.Step 1: Activation
The function must be set up by WEBSALE for your shop ID. Three details are required for this:- Key
- Secret
- URL
If you have requested a separate test account from Inxmail, also pass on its access credentials.
Step 2: Adjusting the shop.config
For each email that is to run via Inxmail, the corresponding section is extended.InxMail_Test is not available for INQUIRY forms. Use a separate inquiry-cfg for the test phase.Step 3: Creating the email templates
A separate template is created in your template directory for each email type. The data is passed as JSON, so the template builds a JSON object. Refer to the Inxmail documentation for which details it must contain.Product names can contain quotation marks and umlauts and must therefore go through
DC-FP1_jsonencoding. Without this step, a single quotation mark in a product name breaks the entire transfer.Passing PDF files
There are three ways to pass attachments:The content between
WEBSALE-EXTMAIL-HTML2PDFB64:: and ::WEBSALE-EXTMAIL-HTML2PDFB64 is converted into a PDF by the interface. This lets you generate an invoice from an HTML template, for example, without using a separate PDF tool.Step 4: Testing sending
Open the shop in the general test mode, trigger the respective email and check whether it arrives and its content is correct.Step 5: Going live
If you worked with a separate test account at Inxmail, contact your WEBSALE contact person after testing. WEBSALE will then switch to the access credentials of the production account.
Intervening in case of errors
The feature includes a dedicated FTP account for an error directory with this structure:
How to handle an error: find the affected file in
/errors, look up the corresponding message in the log, correct the data and move the file to /spool. Everything in /spool is transferred to Inxmail again. If it fails again, the file moves back to /errors.
The log entries are JSON objects. The logs are kept for a maximum of six months and then deleted automatically.
A REST interface can be used to query the number of errors in the last few minutes. This lets you set up monitoring instead of keeping an eye on the directory manually.
Related topics
- Guide: Email notifications
- Guide: Forms for customer inquiries
- Guide: Exchanging data with external systems
