I am trying to send a mail using Exchange Server 2010 and System.Net.Mail.SmtpClient.I have given appropriate permission to the user on all the mailboxes. However, the mail sending fails ( without any exception in SendAsync method ). Instead, if I give Send As permission on the mailboxes, the mail sending succeeds. Is it possible to send "on behalf of" mails from Exchange Server without using Exchange APIs
Sending mail "on behalf of" in exchange server 2010
1.2k Views Asked by Sanrag Sood At
2
There are 2 best solutions below
0
Alex Gordon
On
MailMessage message = new MailMessage();
message.From = new MailAddress("[email protected]");
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in EMAIL
- Email Verification python eror
- Invalid format for email address in WordPress on Azure app service
- How to create an JSOUP element from byte array image (Load from Database)
- How can I look this email address
- Gsheet - Automatically send an email using a date & time in a Cell
- Install Postfix Mail Server
- Error 553 5.7.2 [TSS09] When Sending Emails to Yahoo and Outlook
- How to make my form send the submitted info to my email
- Cpanel filter encoding utf-8?
- Thunderbird Importing Emails imports 0 emails
- Python & Django web app - auto emails not sending
- Allowing any member of a dynamic group to send as from a shared mailbox
- How to fix "search in state AUTH" errror
- Rewriting CSS in MSO conditional comment doesn't work
- Sendgrid attachments in C#
Related Questions in EXCHANGE-SERVER
- Directing proofpoint to ms exchange
- Allowing any member of a dynamic group to send as from a shared mailbox
- In Exchange 2019 on-prem, how do I configure send connectors to disable DNS lookups?
- List calculating each archive folders in Exchange On-Prem
- Share Outlook calendars with all members of specific security group
- Create exchange appointment using ews-javascript-api
- Microsoft outlook Caught exception in remote runspace creation, The WinRM service cannot process the request Redirect location reported
- Set-MailboxAutoReplyConfiguration not recognized even after installing as admin
- How to get the mailbox statistics data for more than 70,000 shared mailboxes in bulk
- Rails 7 send mail via Microsoft Exchange SMTP using oauth2
- Get .msg Copy by Criteria 'PR_INTERNET_MESSAGE_ID'
- MS Graph (Outlook) List messages 'ReceivedDateTime GT' operation failing by 1 second
- EWS Operation Item.Copy fails with 'full_access_as_app' permission
- EWS EmailMessage Move failed
- Can there be multiple DKIM and SPF records on one domain (alongside Microsoft Exchange hosted email)?
Related Questions in SYSTEM.NET.MAIL
- Unicode character in email not throwing exception
- Remove To and BCC Addresses using System.Net.Mail
- Missing new line in MailMessage sent by System.Net.Mail.SmtpClient
- Send mail with System.Net.Mail
- Convertto-HTML outputting pre/post content showing up as System.String[] instead of actual content
- Problem with Send Mail IIS System.Net.Mail Namespace Visual Basic visual-studio-2010
- SmtpFailedRecipientsException Not working
- embedding image not displaying in emaill using vb.net
- Clone or make a MailMessage Immutable in .NET / C#
- Mailmessage.from not working as expected
- how to email a dynamically created htmltable - vb.net
- System.Net.Mail works as localhost but when I add it to my web server it does not
- Correct Syntax for Generating HTML Email using AlternateView
- System.Net.Mail.MailMessage/System.Net.Mail.SmtpClient Sending Duplicate Emails
- Odd error when attaching files with System.Net.Mail
Related Questions in SEND-ON-BEHALF-OF
- Azure AD on behalf of flow keeps failing with AADSTS65001
- Select a Template Email Already Created and Send Using Specific Account
- Problems with changing sender field and account in emails received from specific account
- Outlook vba send email from SharedMailbox without the "Sent on behalf"
- Powershell: Change sender name in outlook com object
- Passing a token from an authenticated app to another API to use OBO flow to Graph API
- AADSTS5002710: Invalid JWT token: header is malformed
- Changing the Sender to use Send on Behalf
- OAuth2 On-Behalf-Of - how does user accept middle-tier permissions?
- Is access token from ADAL.net different from openid
- AADSTS50013: Assertion audience claim does not match the required value
- Sample active-directory-dotnet-webapi-onbehalfof not working
- Send 'behalf of' mailgun in Outlook Gmail
- Unable to open document on DocuSign sent via on behalf
- Exchange 2010 - Powershell to remove Send On Behalf permission
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
MailMessage class exposes two properties: From and Sender
Setting Sender to address1 and From to address2 will send a mail which will read as "address1 on behalf of address2"