Forgot subject handling...

This commit is contained in:
Kumi 2020-09-05 21:36:07 +02:00
parent 730ad8c0e1
commit 481c8498dd
2 changed files with 10 additions and 0 deletions

View file

@ -79,6 +79,8 @@ class Mail {
$mail->add_ccs($req->get_ccs());
$mail->add_bccs($req->get_bccs());
$mail->set_subject($req->get_subject());
$html = $req->prepare_html($req->has_config("urlbeforestring"));
$text = $req->prepare_text(!$req->has_config("noconversion"), $req->has_config("urlbeforestring"));
$mail->add_content($html, $text);
@ -97,4 +99,8 @@ class Mail {
function set_from($email, $name) {
$this->mailer->setFrom($email, $name);
}
function set_subject($subject) {
$this->mailer->Subject = $subject;
}
}

View file

@ -132,6 +132,10 @@ class Request {
}
}
function get_subject() {
return $this->json["subject"];
}
function get_text($conversion=true, $urlbeforestring=false) {
if ($this->json["text"] && $this->json["texturl"]) {
if ($urlbeforestring) {