Email encoding problem with attachments

jarchowk - April 30, 2009 - 13:38
Project:Job Posting
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

trludewig posted this is an incorrect issue but I think it deserves its own. I this deployed on a few different servers, one of them being a server with Japanese as its primary language. It is the only one with this error, so I am guessing it has something to do with it. When sending an application I get a mail message similar to:

--1dfb80b7955437366c14836eddef94d4
Content-Type: text/plain; charset=UTF-8; format=flowed;

aadefsd

--1dfb80b7955437366c14836eddef94d4
Content-Type: text/plain;
name="mailOutFile.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="mailOutFile.txt"

SW4gZHJ1cGFsX21haWxfd3JhcHBlcgpJbiBkcnVwYWxfbWFpbF93cmFwcGVyCkluIGRydXBhbF9t
YWlsX3dyYXBwZXIKSW4gZHJ1cGFsX21haWxfd3JhcHBlcgo=

--1dfb80b7955437366c14836eddef94d4--

Any ideas?

#1

jarchowk - April 30, 2009 - 14:26

Actually I solved my own problem. Emails are sent out using the current user's language, even if the poster of the job is using a different language. Can I suggest the confirmation email be sent out in the language of the job poster's owner, not the current user's?

#2

gmarus - April 30, 2009 - 15:02

Interesting. Having not worked much in a multi-lingual setting I hadn't noticed this before and assumed it would make most sense to use the sender's language on the basic principle of not messing with user data unless absolutely necessary. Also, the user object is readily available at the time of submission, whereas the poster's is not so changing this is a little more involved than it might seem at first but something we should probably look at changing in the near future. Thanks for reporting back on this.

#3

gmarus - September 30, 2009 - 17:23
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.