【发布时间】:2010-10-04 10:45:09
【问题描述】:
emailBody.Replace("[CONFIRMATION_LINK]", confirmLink);
// now that the emailBody variable is set, send the email
emailer.sendEmail(emailAddress, Master.noReplyEmail, emailSubj, emailBody);
emailBody 是一个非空字符串变量,其中包含我要发送的电子邮件的正文,包括短语“[CONFIRMATION_LINK]”。我想用 confirmLink 变量(一些 URL)的内容替换那个短语。
当我发送电子邮件时,我仍然在电子邮件正文中看到短语“[CONFIRMATION_LINK]”。为什么?
【问题讨论】: