Skip to content
Snippets Groups Projects

feat: email styles

Merged Piotr Potrebka requested to merge refactor/templates into devel
6 files
+ 78
27
Compare changes
  • Side-by-side
  • Inline

Files

+ 16
2
@@ -41,6 +41,11 @@ class Email {
*/
private $from_name;
/**
* @var array
*/
private $template_attributes;
/**
* @param string $from_email
*
@@ -56,7 +61,7 @@ class Email {
* @return string
*/
public function get_from(): string {
return sanitize_email( $this->from_email );
return $this->from_email;
}
/**
@@ -134,7 +139,6 @@ class Email {
return $this->headers[ $header ] ?? '';
}
/**
* @param array $attachments
*
@@ -196,4 +200,14 @@ class Email {
return $this->content;
}
public function set_template_attributes( string $name, string $value ): self {
$this->template_attributes[ $name ] = $value;
return $this;
}
public function get_template_attributes(): array {
return $this->template_attributes;
}
}
Loading