On a Drupal 7.10 Site I installed the PHPMailer Module 7.x-3.x-dev.

When sending a new message to Users I get the following Notice after a successful sending!

Notice: Undefined variable: debug in DrupalPHPMailer->SmtpSend() (line 109 of /var/www/sites/all/modules/phpmailer/includes/phpmailer.class.inc).

Under the red Notice is a green Message

Message has been sent to {USER xy}

So if I do the same with a group instead of user(s) then only the "green" message about the successful sending appears.

In both cases two things happen.
1st the Message will be sent to all Recipients in their Inbox(es)

2nd a Mail is generated to the Recipients Email Account(s)

I don't really know which variable is missing when sending messages only to a user or a couple of users.

I thank everybody for help.

CommentFileSizeAuthor
#1 phpmailer.debug-notice.1.patch671 bytessun
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Status: Active » Needs review
FileSize
671 bytes

Can you test this patch?

rmfleet’s picture

I can confirm that this patch fixes the notice issue here.

sun’s picture

Assigned: chrisssi » Unassigned
Status: Needs review » Fixed

Thanks for reporting, reviewing, and testing! Committed to all branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

line 109