We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a97c61 commit 782a967Copy full SHA for 782a967
src/Ubiquity/mailer/AbstractMail.php
@@ -265,10 +265,16 @@ abstract public function body();
265
*/
266
abstract protected function initialize();
267
268
+ /**
269
+ * Called before the mail build
270
+ * To override
271
+ */
272
+ protected function beforeBuild() {}
273
+
274
public function bodyText() {}
275
276
public function build(PHPMailer $mailer) {
- $this->initialize();
277
+ $this->beforeBuild();
278
foreach ($this->swapMethods as $property => $method) {
279
$values = $this->{$property};
280
if (! isset($values['email'])) {
0 commit comments