Skip to content

Commit 7b038a0

Browse files
committed
add address mail in mailer class
1 parent 3581f7b commit 7b038a0

2 files changed

Lines changed: 29 additions & 27 deletions

File tree

api/php/.idea/workspace.xml

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/php/classes/mailer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function sendMail($clientMail, $phone, $message) {
1111
$mail->isSMTP();
1212
$mail->SMTPDebug = 2;
1313
$mail->Debugoutput = 'html';
14-
$mail->Host = 'ncg.zenbox.pl';
14+
$mail->Host = 'smtp.zenbox.pl';
1515
$mail->Port = 587;
1616
$mail->SMTPSecure = 'tls';
1717
$mail->CharSet = 'UTF-8';
@@ -26,6 +26,8 @@ public function sendMail($clientMail, $phone, $message) {
2626
);
2727

2828
try {
29+
$mail->setFrom('kontakt@tymdev.pl');
30+
$mail->addAddress('kontakt@tymdev.pl');
2931
$mail->send();
3032
return true;
3133
} catch (Exception $e) {

0 commit comments

Comments
 (0)