When writing tests we're intentionally causing sent messages to fail. This PHP notice is generated:

PHP Notice
Undefined index: from

mandrill.module, line 192, mandrill_mailsend()

 watchdog('mandrill', 'Error sending email from %from to %to. @code: @message',
      array(
        '%from' => $message['from'],
        '%to' => $message['to'],
        '@code' => $e->getCode(),
        '@message' => $e->getMessage(),
      ),
      WATCHDOG_ERROR
    );

should be:

    watchdog('mandrill', 'Error sending email from %from to %to. @code: @message',
      array(
        '%from' => $message['from_email'],
        '%to' => $message['to'],
        '@code' => $e->getCode(),
        '@message' => $e->getMessage(),
      ),
      WATCHDOG_ERROR
    );

Patch to follow...

CommentFileSizeAuthor
#3 Notice_from_mail-Mandrill-2143853-2.patch532 bytesDeeZone

Comments

DeeZone’s picture

Issue summary: View changes
DeeZone’s picture

Patch for comment #1 attached.

DeeZone’s picture

StatusFileSize
new532 bytes

  • Commit fbcaa0c on 7.x-1.x authored by DeeZone, committed by gcb:
    #2143853: Bad index in warning message.
    
gcb’s picture

Status: Active » Closed (fixed)

Fixed in Dev. Thanks!

  • Commit fbcaa0c on 7.x-1.x, 7.x-2.x authored by DeeZone, committed by gcb:
    #2143853: Bad index in warning message.