附件文件名显示不正确 - Elixir

时间:2017-06-15 07:39:37

标签: elixir mailman

我在发送带有附件的电子邮件时遇到问题,该附件的文件名包含中文字符mailman

电子邮件中附件的文件名看起来不正确。 我该怎么做才能使文件名在附件中显示为正常。

snapshot about attachment with wrong file name

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或者我该怎么做才能解决这个问题。 感谢。

0 个答案:

没有答案