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.
im receiving the following error when im trying to send e-mail "Invalid address: "=?UTF-8?B?SWJpw7puYSBNYWlz?=" " what it can be? :(
Comments
Comment #1
boabjohn CreditAttribution: boabjohn commentedPerhaps I can join in here...
I have just set up Simplenews (6.x-2.x-dev) running through HTML Mail module and am getting this error when I send newsletters:
This appears on a blank white page with url as /node/xx/edit...no clue as to who is throwing the error.
The "Invalid address" above is the "from name" provided in Simplenews configuration (/admin/settings/simplenews/newsletter)
Email actually sends fine.
Inspecting Watchdog, I see this error for each of my test sends:
This has me stumped. I came up with this thread as the most likely match: http://drupal.org/node/128832
But I'd have no idea where to start looking for errant whitespace.
Simplenews does not produce this error: with Sutharsan's help I grepped for Invlaid address and found:
Running smtp: smtp.module,v 1.17.2.12 2009/11/10 17:03:10, patched class.phpmailer.php.2.0.2 and class.phpmailer.php.2.2.1
Will check out the phpmailer and messaging queues now...
Comment #2
drm CreditAttribution: drm commentedI am getting exactly the same error as boabjohn, in this case from an email that Webform is trying to send. This is the email that goes to the admin person who gets notices that a submission was made. My log error is exactly the same as his is.
Comment #3
franzI think there was a whitespace in a translation file or something, inside phpmailer... not sure thought
Comment #4
sampeckham CreditAttribution: sampeckham commentedSame problem here. I receive the white page with this message after posting comments using Watcher (it sends a notifcation email when comment is posted). Sometimes the message is repeated 2 or three times too.
Comment #5
sampeckham CreditAttribution: sampeckham commentedBad form and not a solution i know, but I've commented out lines 459 to 467 of class.phpmailer.php and everything is working fine. I guess if the you know your address is valid it's not a major issue - but i'll be watching to see anyone can track down the real solution.
Comment #6
aberg CreditAttribution: aberg commenteddo you mind telling me which are these lines? In my version line 459 is a comment
Comment #7
dandaman CreditAttribution: dandaman commentedI'm using PHPMailer version 5.1. On lines 464 and 496 of
class.phpmailer.php
the following appears:Once I commented out both of these lines the
Invalid address: "From Name"
message no longer appeared instead of the Webform's thank you message.Comment #8
gregor171 CreditAttribution: gregor171 commentedThis is an issue of mime_header_encode and I reported a problem. I'd discourage you to comment out PHPMailer functions since they work fine.
To FIXthis problem you can comment out lines that cause this issue in webform.module lines in function webform_client_form_submit around 1829 line:
Sorry I dont have time to go into mime_header_encode function.
Comment #9
franzOk, then the issue does not belong in SMTP. Anyway, if it is a core issue, has it been reported yet?
I'll close this, please reopen in case it still applies.
Comment #10
aberg CreditAttribution: aberg commentedWe finally fixed this problem by simply overwriting the from address in the config of the 'SMTP Authentication Support' module. I think somehow some UTF8 values slipped in and started causing the problems.