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 answers
0
Alex Gordon
On
MailMessage message = new MailMessage();
message.From = new MailAddress("[email protected]");
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
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
- Why am I getting 'Authentication required' error when sending email in Android .NET MAUI?
- how to add retry times or max attemp time in powershell with O365
- Sending an Email using VB.NET and smtp.office365.com
- c# and issues with email
- (Solved) Why is smtp not sending email on published Blazor Server app?
- Cannot send SMTP Email from Outlook VSTO Addin
- cannot send a message with an href in a message body in c# with System.net.mail
- System.Net.Mail SmtpClient c#
- VB SMTP through System.Net.Mail stopped working
- How to continue using system.net.mail to send emails after google disabled the 'less secure apps' option? C#
- Which library to use for sending email in c#?
- Unrecognized configuration section system.net
- Force System.Net.Mail.SmtpClient to encode the Subject header using Base64
- Office 365 email configuration throws an exception
- Sending mail through SmtpClient and smtp.office365.com setting email's sensitivity to normal, personal, private or confidential
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
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?
Popular Tags
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)
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"