Rank: Newbie
Groups: Registered
Joined: 8/20/2013(UTC)
Posts: 0
Location: bangalore
i display the mail.from but i cannot display mail.to in c#.please help me how to recieve this mail.to. code:- Mail oMail = oClient.GetMail(info); MessageBox.Show(oMail.ReplyTo.ToString());
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,153
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Originally Posted by: kali i display the mail.from but i cannot display mail.to in c#.please help me how to recieve this mail.to. code:- Mail oMail = oClient.GetMail(info); MessageBox.Show(oMail.ReplyTo.ToString());
Hi, To is a MailAddress array, one email may contains multiple to addresses:
so please use the following codes:
// Parse Mail To, Recipient MailAddress[] addrs = oMail.To; for (int i = 0; i < addrs.Length; i++) { MessageBox.Show("To: {0}", addrs[i].ToString()); }
Rank: Newbie
Groups: Registered
Joined: 8/20/2013(UTC)
Posts: 0
Location: bangalore
TempToEmployeeEmailID = oMail.To[0].ToString();
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,153
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Originally Posted by: kali TempToEmployeeEmailID = oMail.To[0].ToString();
Some emails doesn't contain To recipients, so before you use
TempToEmployeeEmailID = oMail.To[0].ToString();
please make sure oMail.To.Length > 0
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.