0

我正在我的一个网站上使用在线表格。即使发件人 IP 不同,从该表单发送的每封邮件都会以一封邮件的形式发送。

但我希望每封邮件都是独一无二的,即使内容相同。我需要对邮件做什么或需要修改哪个标题?

SmtpClient smtpClient = new SmtpClient();
MailMessage message = new MailMessage();

MailAddress fromAddress = new MailAddress("no-reply@toprakbasim.com", "NoReply");
MailAddress toAddress = new MailAddress("info@toprakbasim.com", "Info");
MailAddress toSender = new MailAddress(tEMail.Text, tNameSurname.Text);

message.From = fromAddress;
message.Bcc.Add(toAddress);
message.ReplyTo = toSender;
message.Subject = tNameSurname.Text + " : contact";
message.IsBodyHtml = true;

message.Body = "some html here";

smtpClient.Send(message);
4

2 回答 2

2

您在使用什么邮件阅读器程序?因为听起来该程序正在为您滚动电子邮件。(默认情况下,Outlook 2010 会执行此操作)。尝试使用其他电子邮件阅读器(如 Outlook Express 或 tbird)阅读您的电子邮件

于 2010-04-20T20:09:33.247 回答
2

Gmail 会将具有相同主题行的电子邮件组合在一起。在主题行中添加一些文本以使其唯一,例如 MessageID、时间等。

如果您说正文中的内容包含多个响应,那么问题在于您如何收集然后分配给的文本message.Body。如果在分配给之前文本在变量中message.Body,请确保您没有重复使用该变量并且每次都重新实例化它。

于 2010-04-20T20:19:02.417 回答