When sending a test email on an account that is not correctly configured yet (for this particular case, the DNS MX entry is not pointing yet to Google), the following error raises:

Notice: Undefined offset: 0 at SmtpMailSystem->mail() (line 169 of /path/to/drupal/sites/all/modules/contrib/smtp/smtp.mail.inc).

Adding a small check before entering the switch statement fixes the issue. Patch attached in the following comment.


juampynr’s picture

Status:Active» Needs review
634 bytes

Here is the patch.

wundo’s picture

Status:Needs review» Fixed

Committed, thanks!

Status:Fixed» Closed (fixed)

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