Hi does anyone know how to send or reply to an outlook mailitem using a specific string of email address?
FOR EXAMPLE:
my outlook email address is:
string email = "[email protected]";
now instead of my outlook email address, i want to use (email address from a specific mailbox on my outlook):
string email = "[email protected]";
I already tried using this:
Outlook.Accounts accounts = application.Session.Accounts;
foreach (Outlook.Account account in accounts)
{
// When the e-mail address matches, return the account.
if (account.SmtpAddress == smtpAddress)
{
return account;
}
}
but its only looking up for the accounts on what is in my outlook application.
Account
? – Yacoub Massad