My Office add-in (which runs in Outlook) uses the OfficeJS library to get a callback token for authentication against Exchange:
Office.context.mailbox.getCallbackTokenAsync(...);
The token is sent to our server together with some message/attachment IDs and the server will attempt to connect to Exchange to retrieve said mail attachment. I use the EWS java API library for this. I am getting an Unauthorized 401 HTTP error back from Exchange when trying to bind to an EmailMessage:
ExchangeService exchangeService = new ExchangeService();
exchangeService.getHttpHeaders().put("Authorization", "Bearer " + callbackToken);
exchangeService.setUrl(new URI(ewsUrl));
EmailMessage mailMessage = EmailMessage.bind(exchangeService, new ItemId(mailMessageId));
When tested against Office 365 it all works flawlessly. However, when running this at a client I get the HTTP 401 response. The client runs Exchange 2013 on-premise. Does Exchange 2013 on-premise even support token authentication? Is there anything that needs to be done to enable this on that version of Exchange?
Related
i try to send an email using symfony 4.4 from Microsoft Exchange Serve 2010
i get the following error :
Failed to find an authenticator supported by the SMTP server.
....
if (!$authNames) {
throw new TransportException('Failed to find an authenticator supported by the SMTP server.'); }
this is my configuration in .env
MAILER_DSN=smtp://helpdesk#amdl.gov.ma:mypassword#192.168.30.20:25
192.168.30.20 is the ip of Microsoft Exchange Serve 2010 MV.
Is it possible to call Exchange Soap Services 2010 offline if there is an exchange server setup?
Exchange Soap Services uses iOS application for Create Event View Event list.
Is it possible to call Exchange Soap Services 2010 offline
No EWS is a Web Service so like any web service its a remote endpoint if your not online then there is no remote endpoint to process the request your sending. Your application or client could still function offline if you create your caching logic and retrieval logic but you won't be making the same EWS call as there would be no remote endpoint to process any responses.
I have configured a new Exchange 2016 server and I use it to send emails over a self-written .net application, using the standard MailMessage and SmtpClient. Everything works fine about 90% of the time and then suddenly without any change (neither on the server, nor on the code) this error is returned:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
Then some time later (could be a minute or an hour) everything works fine again, without any change on either component. Any ideas what might be causing this?
I want to send email with and attachment using SSIS, and the below error occurs.
[Send Mail Task] Error: An error occurred with the following error
message: "The SMTP server requires a secure connection or the client
was not authenticated. The server response was: 5.5.1 Authentication
Required. Learn more at".
Below is my SMTP connection Manager and Send Mail Task, and the above error occurs..
Any help..
You need to provide authentication, GMail doesn't work as an open relay.
Also, you can't connect to GMail with Windows authentication, so you'll have to use a script component and do this in .Net if that has to be your mail server for this.
Here's someone who found & solved this already, even including the GMail part: http://kalyan-coldfusion.blogspot.co.uk/2012/04/send-email-with-ssisdatabase-from-gmail.html
Better luck with your Googling in future :)
When trying to send mail (to email addresses within the domain) using PHP's mail() function on my new Exchange 2010 server I get the error:
mail(): SMTP server response: 501 5.1.3 Invalid address
I tried creating a new receive connector with anonymous authentication but that doesn't seem to help, and honestly I have little to no experience with Exchange Server.
The address is valid, btw.
Try adding this on top:
ini_set("sendmail_from", "email#yourdomian.com");
It'll work