Rather than using an SMTP server to send emails, it’s possible to install a module to use an external email delivery service such as SendGrid ( SendGrid ) which is supplied in the Business and Enterprise installation package.
The email related API calls that can be used to send emails through an external email delivery service are:
Application API
sendNewPassword1
sendWelcomeEmail1
sendOrderConfirmationEmail1
sendTemplateEmailToCustomer1
sendStockReorderEmail (only available on the EmailMgr. Called by the KonaKart engine when the stock level of a product goes below a certain level)
Admin API
sendTemplateEmailToCustomers
sendTemplateEmailToCustomers1
sendTemplateEmailToCustomers1WithOptions
sendTemplateEmailToCustomersWithOptions
resetCustomerPassword
sendEmail
sendStatusChangeEmailForState (only available on the AdminEmailMgr. Called by the KonaKart Admin engine when an order changes state)
When the SendGrid module is enabled, the above API calls automatically use the module rather than the configured SMTP server to send the mails.
Configure External Mail service
In order to use SendGrid, you must register for the service and get an API key. Once you have the key you can use it to configure the module as shown above. It’s the only configuration parameter required.
The default implementation of the SendGrid module sends the mail contents created (in most cases) using the KonaKart Velocity templates. However, the module can be easily customised to use SendGrid templates and variable substitutions.
The SendGrid module is an example which can be used in order to create a module for any other email delivery service. It inherits a lot of useful reusable functionality from BaseMailModule.java which you can find under the KonaKart/custom/modules/src/com/konakart/bl/modules/others directory. Please contact sales@konakart.com if you’d like a quote for the development of a module for any specific external service that you'd like to use.