Indy10 能发送英文内容的邮件但不能发送包含中文(GB,BIG5码)的邮件.
with IdMessage1 do
begin
Subject := '下月下貨'; //发送没有报错,但就是收不到
Body.Text := '通知鍋';
//Subject := 'moon gril; 如果写成英文的就没问题能发出去
// Body.Text := 'good mail; From.Text := '[email protected]';
ReplyTo.EMailAddresses := '[email protected]';
Recipients.EMailAddresses := '[email protected]'; { To: header }
Priority := mpHighest; { Message Priority }
ContentType:= 'text/plain';
end; SMTP.AuthType := atDefault;
SMTP.Username := 'juziling';
SMTP.Password := 'magician'; SMTP.Host := 'smtp.pchome.com.tw';
SMTP.Port := 25; try
SMTP.Connect; SMTP.Send(IdMessage1); ShowMessage('发送完毕'); finally
SMTP.Disconnect;
end;
with IdMessage1 do
begin
Subject := '下月下貨'; //发送没有报错,但就是收不到
Body.Text := '通知鍋';
//Subject := 'moon gril; 如果写成英文的就没问题能发出去
// Body.Text := 'good mail; From.Text := '[email protected]';
ReplyTo.EMailAddresses := '[email protected]';
Recipients.EMailAddresses := '[email protected]'; { To: header }
Priority := mpHighest; { Message Priority }
ContentType:= 'text/plain';
end; SMTP.AuthType := atDefault;
SMTP.Username := 'juziling';
SMTP.Password := 'magician'; SMTP.Host := 'smtp.pchome.com.tw';
SMTP.Port := 25; try
SMTP.Connect; SMTP.Send(IdMessage1); ShowMessage('发送完毕'); finally
SMTP.Disconnect;
end;
记得indy10只是收中文名的附件时候会有点问题,中文邮件应该不会出现问题的?
难道是繁体的原因?