After the line $headers = array … you have to insert
wp_mail( $to, $subject, $body, $headers );
Regards
Hello Pierre,
for me it’s working – I think, it’s not because of the @ but because of the wrong quotation marks…
$to = 'piet@piet.com';
$subject = 'The subject';
$body = $this->subscriber->first_name . ' ' . $this->subscriber->last_name . ' (' . $this->data['email'] . ') just subscribed.';
$headers = array('Content-Type: text/html; charset=UTF-8');
You can edit Pages.php (in /mailpoet/lib/Subscription) and add after
$this->subscriber->save();
the following code:
$to = ‘YOUR_MAILADRESS’;
$subject = ‘The subject’;
$body = $this->subscriber->first_name . ‘ ‘ . $this->subscriber->last_name . ‘ (‘ . $this->data[’email’] . ‘) just subscribed.’;
$headers = array(‘Content-Type: text/html; charset=UTF-8’);
wp_mail( $to, $subject, $body, $headers );
Regards