Forgot subject handling...
This commit is contained in:
parent
730ad8c0e1
commit
481c8498dd
|
@ -79,6 +79,8 @@ class Mail {
|
||||||
$mail->add_ccs($req->get_ccs());
|
$mail->add_ccs($req->get_ccs());
|
||||||
$mail->add_bccs($req->get_bccs());
|
$mail->add_bccs($req->get_bccs());
|
||||||
|
|
||||||
|
$mail->set_subject($req->get_subject());
|
||||||
|
|
||||||
$html = $req->prepare_html($req->has_config("urlbeforestring"));
|
$html = $req->prepare_html($req->has_config("urlbeforestring"));
|
||||||
$text = $req->prepare_text(!$req->has_config("noconversion"), $req->has_config("urlbeforestring"));
|
$text = $req->prepare_text(!$req->has_config("noconversion"), $req->has_config("urlbeforestring"));
|
||||||
$mail->add_content($html, $text);
|
$mail->add_content($html, $text);
|
||||||
|
@ -97,4 +99,8 @@ class Mail {
|
||||||
function set_from($email, $name) {
|
function set_from($email, $name) {
|
||||||
$this->mailer->setFrom($email, $name);
|
$this->mailer->setFrom($email, $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function set_subject($subject) {
|
||||||
|
$this->mailer->Subject = $subject;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -132,6 +132,10 @@ class Request {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_subject() {
|
||||||
|
return $this->json["subject"];
|
||||||
|
}
|
||||||
|
|
||||||
function get_text($conversion=true, $urlbeforestring=false) {
|
function get_text($conversion=true, $urlbeforestring=false) {
|
||||||
if ($this->json["text"] && $this->json["texturl"]) {
|
if ($this->json["text"] && $this->json["texturl"]) {
|
||||||
if ($urlbeforestring) {
|
if ($urlbeforestring) {
|
||||||
|
|
Loading…
Reference in a new issue