PHP-Mail

Most Web-Server offer an email function. But offen the desired sender Email is not configured on the Web Server. K8 Web Kit supports the following 2 email systems:
- email by the Web server
- email by PHPMailer and an external email server
Use cases
- gbSendContact()
- gbsendActivation()
- gbSendPwd()
Basic Configuration
masterdata/_init.php
The default domain_emailmode is set to "0: email by server". Please look to your Server Email Configuration and check the configuration.
The default domain_testemail can be used for several user as test. Please regard that "Send Password" is not working well in this case.
domain_email allows to configure:
- activate, Activation email
- sendPwd, Send password email
For both:
- subject
- content
can be declared. The content supports HTML-emails.
PHPMailer
Configuration
masterdata/_init.php
The default domain_emailmode is set to "1: PHPMailer". Please continue with the configuration for your email server. For example for a google email server it is important to configure an App-Password for third party access (description of App Password configuration).
More information to:
Send email with PHPMailer
If you want to use PHPMailer for own emails even by your customer, you can declare PHPMailer like this and transfer the customer mail server access data.