我在发送带有附件的电子邮件时遇到问题,其中文件名包含mailman的中文字符。
电子邮件中附件的文件名看起来不正确。我应该怎么做才能使文件名在附件中正常显示。
elixir
def compose(reusme_path, resume_name, email, subject, text) do
%Mailman.Email{
subject: subject,
from: "career@xxx.com",
to: [email], # should be [email] arg
html: "<html><body>
<div>#{text}</div>
<br>
<br>
<br>
<img style='width: 200px; height: 200xp;'
src='https://cavi-cdn.b0.upaiyun.com/resumes/attachments/rX63jEjNq3Zs7hiQKvDBqY5CBl4peBMT/WechatIMG49.jpeg'/>
</body></html>",
attachments: [
Mailman.Attachment.inline!(reusme_path, "#{subject}.pdf")
]
}
end
那么,如何配置mailman 或者我应该怎么做才能解决这个问题。谢谢。