我正在我的一个网站上使用在线表格。即使发件人 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);