hi know how send or reply outlook mailitem using specific string of email address?
for example:
my outlook email address is:
string email = "myoutlookemailaddress@company.com";
now instead of outlook email address, want use (email address specific mailbox on outlook):
string email = "otheremailaddress@company.com";
i tried using this:
outlook.accounts accounts = application.session.accounts; foreach (outlook.account account in accounts) { // when e-mail address matches, return account. if (account.smtpaddress == smtpaddress) { return account; } }
but looking accounts on in outlook application.
1) if sending through exchange on behalf of mailbox, set mailitem.sentonbehalfofname
property (assuming have sufficient privileges)
2) if sending through particular smtp account, set mailitem.sendusingaccount
property.
3) if need send arbitrary smtp user, see this example - need set "from" named mapi property in ps_internet_headers namespace. note not smtp servers let - exchange 1 not let spoof sender.
4) if want send 1 of alias (proxy) smtp addresses belonging particular exchange mailbox, need send through smtp - sending through oom or mapi send default smtp address of mailbox. end user, can configure dummy pop3/smtp account or use product proxy manager. see msoutlook.info more information.
Comments
Post a Comment