全部回复电子邮件功能 [英] Reply All In Email Functionality
问题描述
大家好,
电子邮件功能,
在全部回复期间,我想要收集收件人的邮件地址并将其保存在数据库中。
从数据库中我想分别显示To,CC,地址。
如何分开mailitem.to,mailitem。收件人收藏中的cc部分?
请告诉我,
>
您可以使用类似下面的函数返回基于String输入参数的List: -
----------- -------------------------------------------------- ---------------------------------
< pre lang =xml> public static List < string > CollectMailIds(String strEmailIDList)
{
List < string > sEmailList = new List < string > 跨度>();
String [] emails = strEmailIDList.Split(new Char [] {';',',',''},StringSplitOptions.RemoveEmptyEntries);
foreach(电子邮件中的字符串)
{
sEmailList.Add(s);
}
返回sEmailList;
}
------------------------------ -------------------------------------------------- --------------
如果这样可以解决您的问题;请将问题标记为已回答&承认一样。
问候,
Subhash Konduru
Hi To all,
In Email Functionality,
During Reply All , i want to collect the recipients mail address & save it in database.
From database i want to display To, CC, addresses separately.
how to separate the mailitem.to,mailitem.cc section in recipient collection?
pls let me know,,
Hi,
You can use a function like below to return the List based on String input argument:-
----------------------------------------------------------------------------------------------
public static List<string> CollectMailIds(String strEmailIDList) { List<string> sEmailList = new List<string>(); String[] emails = strEmailIDList.Split(new Char[] { ';', ',', ' ' }, StringSplitOptions.RemoveEmptyEntries); foreach (string s in emails) { sEmailList.Add(s); } return sEmailList; }
----------------------------------------------------------------------------------------------
If this resolves your issue; please mark the question as answered & Acknowledge the same.
Regards,
Subhash Konduru
这篇关于全部回复电子邮件功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!