Closed Bug 1187264 Opened 9 years ago Closed 9 years ago

Email with chinese character meet "Wide character in subroutine entry" issue

Categories

(Bugzilla :: Email Notifications, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 714724

People

(Reporter: boyang.jin, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.6.2000 Chrome/30.0.1599.101 Safari/537.36 Steps to reproduce: send mail with chinese character Actual results: got error msg as below Can't locate object method "message" via package "Wide character in subroutine entry at lib/Email/Sender/Transport/SMTP.pm line 218. " (perhaps you forgot to load "Wide character in subroutine entry at lib/Email/Sender/Transport/SMTP.pm line 218. "?) at Bugzilla/Mailer.pm line 181. Expected results: send out mail correctly
I aleady fix it in below step. comment line 218 in SMTP.pm. Fully agree with rjbs's solution. # I would love to remove this when Net::SMTP is unscrewed. # See https://rt.cpan.org/Ticket/Display.html?id=104433 # -- rjbs, 2015-05-14 #utf8::downgrade($next_hunk);
So you have libnet 3.07 and Email::Sender 1.300018 installed?
(In reply to Frédéric Buclin from comment #2) > So you have libnet 3.07 and Email::Sender 1.300018 installed? Yes, It is Email::Sender 1.300018, which is default version from Bugzilia.
Could you test again with Email::Sender 1.300020 or newer? Its changelog mentions a fix for: 1.300019 2015-08-10 15:48:02-04:00 America/New_York (TRIAL RELEASE) - only work around Net::SMTP on broken (pre-3.07) versions Moreover, I just checked in a fix for bad encoding in emails, see bug 714724. This fix will be in Bugzilla 5.0.2. Could you apply this fix to your installation and tell us if this fixes your issue, please?
Keywords: qawanted
I am using Email::Sender version 1.300021
Alexey, could you apply the patch from bug 714724 or use git to test if this fixes your issue?
Applied on mine 5.0.1 #cat patch.utf | patch -p 1 patching file Bugzilla/BugMail.pm patching file Bugzilla/MIME.pm patching file Bugzilla/Mailer.pm patching file t/011pod.t patching file template/en/default/whine/header.txt.tmpl patching file template/en/default/whine/multipart-mime.txt.tmpl patching file whine.pl Tested both Sendmail and SMTP meyhods with HTML and TEXT All works perfect Now got UTF in mail correctly <pre>=D1=82=D0=B5=D1=81=D1=82</pre> Things are fixed for me. Thank you guys.
Perfect! Thanks for the testing! :) Marking as a duplicate of bug 714724 as it's another symptom of the same issue.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Keywords: qawanted
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.