Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | undefined_index_when_parsing_vars_aray_1402556_1.patch | 634 bytes | juampynr |
Comments
Comment #1
juampynr CreditAttribution: juampynr commentedHere is the patch.
Comment #2
wundo CreditAttribution: wundo commentedCommitted, thanks!