Undefined variable: result en NewsletterAutomated->send() (line 276
in sites/all/modules/newsletter/includes/newsletter.automated.inc

newsletter_set_watchdog($this->newsletter->nnid, $this->list->title, $subscriber->email, $result);

Comments

Patricia_W’s picture

Version: 7.x-2.x-dev » 7.x-1.0-beta8

I'm getting this error in Beta 8:

Unable to send e-mail. Contact the site administrator if the problem persists.
Notice: Undefined variable: result in NewsletterAutomated->send() (line 276 of ... newsletter.automated.inc).

This was previously working but I just changed to using SMTP. Resetting to not using SMTP resolved problem.

Using smtp module "7.x-1.0-beta2"

ParisLiakos’s picture

Category: bug » support
Status: Active » Fixed

like i state in project homepage:

smtp needs to be installed before you install newsletter

You can run this to restore functionality in devel's execute php block

$mail_modes = variable_get('mail_system', array('default-system' => 'DefaultMailSystem'));
$mail_modes['newsletter'] = 'NewsletterMailSystem';
variable_set('mail_system', $mail_modes);

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.