Send e-mail with php.
Change this lines with yours configurations.
$mail->SMTPSecure = 'tls';
$mail->Port = '587';
$mail->Host = 'smtp.domain.com';
$mail->Username = '[email protected]';
$mail->Password = 'password';POST /email-php/php/email/send/ HTTP/1.1
Host: localhost
Content-Type: application/json
Cache-Control: no-cache
{
"from": {
"name": "xxxxx",
"email": "[email protected]"
},
"address": [{
"name": "yyyyy",
"email": "[email protected]"
}, {
"name": "zzzzz",
"email": "[email protected]"
}],
"title": "Email php",
"msg": "Hello email php."
}{
"result": true
}{
"result": "SMTP Error: Could not authenticate."
}