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.
Invalid address: Array
Fatal error: Uncaught exception 'phpmailerException' with message 'SMTP Error: Data not accepted.' in /usr/home/mikeyao/htdocs/legato/sites/all/modules/phpmailer/phpmailer/class.phpmailer.php:757
Stack trace:
#0 /sites/all/modules/phpmailer/includes/phpmailer.class.inc(84): PHPMailer->SmtpSend('Return-Path: mi...', 'This is a multi...')
#1 /sites/all/modules/phpmailer/includes/phpmailer.mimemail.inc(72): DrupalPHPMailer->SmtpSend('Return-Path: mi...', 'This is a multi...')
#2 /sites/all/modules/phpmailer/phpmailer.module(81): mimemail_phpmailer_send(Array)
#3 /sites/all/modules/mimemail/mimemail.module(174): phpmailer_mailengine('send', Array)
#4 /sites/all/modules/mimemail/mimemail.module(282): mimemail('mikeyao1@sina.c...', NULL, 'Signup wishlist', '<p>You have add...', NULL, Array, NULL, Array, '')
#5 /includes/mail.inc(177): drupal_mail in /sites/all/modules/phpmailer/phpmailer/class.phpmailer.php on line 757
Comment | File | Size | Author |
---|---|---|---|
#9 | 749506-display-name-double-encoding.patch | 4.57 KB | smk-ka |
Comments
Comment #1
yaoweizhen CreditAttribution: yaoweizhen commentedComment #2
smk-ka CreditAttribution: smk-ka commentedCould you give some more details about what triggered the email (i.e. which module tries to send an email), and the module version of Mime Mail? I'm asking, since obviously the recipient (second parameter in the mimemail() call) is NULL:
mimemail('mikeyao1@sina.c...', NULL, ...)
, which looks wrong.Comment #3
smk-ka CreditAttribution: smk-ka commentedSorry, without further information this issue can only be marked as won't fix.
Feel free to re-open this issue if you want to provide further information. Thanks.
Comment #4
boabjohn CreditAttribution: boabjohn commentedSorry to re-open, but am casting the net widely and see this issue as related:
http://drupal.org/node/748030#comment-2907516
Thanks for any input...
Running: // $Id: phpmailer.module,v 1.4 2009/05/07 04:33:19 sun Exp $
Comment #6
boabjohn CreditAttribution: boabjohn commentedIt seems like the error is someplace around here (note the error being thrown):
Comment #7
smk-ka CreditAttribution: smk-ka commentedPlease update to the 2.x development snapshot first, as 2.1 is a rather old release. 2.x contains a more advanced e-mail address parser, and I'd like to see whether the bug is still occurring then.
Comment #8
boabjohn CreditAttribution: boabjohn commentedG'Day: Just tested with both 2.x dev and 3.x rc1
Both versions throw the same Invalid address error (which seems to come from the phpmailer.class) and in addition I get this error:
Lastly, I noted in drush that on updatedb the system is reporting this (twice):
Sorry if this is a bit of issue bloat...it's a pretty confusing set of factors to try to unravel, I find. PHPMailer is required in at least three places I've found:
- phpmailer module wants the class for itself, but just two files from the package
- smtp wants it as well, and make sure to rename the package to lowercase
- messaging wants it, and make sure you *don't* make it lowercase, but *do* drop the version number.
It's no wonder that somewhere along the line there's some crossed wires.
If I've got the configuration stack all wrong, please let me know...but I can't see how to get the job done otherwise.
Thanks in advance!
Comment #9
smk-ka CreditAttribution: smk-ka commentedI've just updated the email parser and added some new tests to make sure all sorts of plain, escaped, as well as base64 encoded addresses are properly parsed and decoded before handed to PHPMailer (the library). Attaching the patch for reference only, as branches are already updated.