据我所知,我有问题,因为在电子邮件地址中不使用ASCII符号
示例:
Notifier.rb
mail(to: "Tamón ÄRUÄ <example@example.com>", subject: "Email subject")
我有什么建议可以处理这个案子吗?我更喜欢在地址中保留用户名。
答案 0 :(得分:0)
根据[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip)]
public class ToolStripDateTimePicker : ToolStripControlHost
{
private FlowLayoutPanel controlPanel;
private DateTimePicker picker = new DateTimePicker();
public ToolStripDateTimePicker()
: base(new FlowLayoutPanel())
{
controlPanel = (FlowLayoutPanel)base.Control;
controlPanel.BackColor = Color.Transparent;
AutoSize = false;
controlPanel.Controls.Add(picker);
}
public DateTime Value
{
get { return this.picker.Value; }
set { this.picker.Value = value; }
}
protected override void OnSubscribeControlEvents(Control control)
{
base.OnSubscribeControlEvents(control);
}
protected override void OnUnsubscribeControlEvents(Control control)
{
base.OnUnsubscribeControlEvents(control);
}
}
文档,多字节编码应自动完成:http://guides.rubyonrails.org/action_mailer_basics.html#auto-encoding-header-values
可能有几件事要尝试:
ActionMailer
添加到控制器的第一行; # encoding: utf-8
http://www.rubydoc.info/github/mikel/mail/Mail%2FMessage%3Atransport_encoding