本文介绍了附上“隐私声明"发送电子邮件,但不显示在消息文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个电子邮件对话框,其中包含一个名为添加隐私声明"的复选框.选中此复选框后,需要在电子邮件中添加隐私声明".但是,隐私声明不应该显示在txtMessage.Text中,而应该仅在发送后显示在实际的电子邮件中.我应该怎么做呢?这是我到目前为止用于复选框的代码.代码在C#中.谢谢!
I have an email dialog with a checkbox called "Add Privacy Statement." When this checkbox is checked it needs to add the "privacy statement" to the email message. However the privacy statement should not show up in txtMessage.Text but only should show up in the actual email itself after it is sent. How should I go about doing this? This is the code I have so far for my checkbox. Code is in C#. Thanks!
private void cbPrivacy_CheckedChanged(object sender, EventArgs e)
{
string privacyStmt;
if (cbPrivacy.Checked == true)
{
txtMessage.Text = this.message + Environment.NewLine + a this.settings.PrivacyStatement;
}
else
{
txtMessage.Text = this.message
}
}
推荐答案
这篇关于附上“隐私声明"发送电子邮件,但不显示在消息文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!