I also had that problem in the beginning - solved it with adding the necessary permissions to the mail boxes.
You can find it in the exchange admin tool:
Mailboxes -> Mailbox Permissions ->Manage mailbox delegate -> Send as
Not an uncommon error. I think smtp connection by default is off on Office365 mail accounts. So they need to be enabled before you can use them like SMTP accounts in Business Central. We are here if you need further assistance.
Thanks, Inge for quick reply. I checked "Email Outbox" and there it is giving me "Cannot authenticate the credentials on server smtp.office365.com." error. I will work with admin and correct this issue and will come back if it is still not resolved.
Thanks,
Amit.
The way you have organized your code makes it necessary to define it because you have used it in your code.
You can send the message with out using a scenario but just refer to the email account instead.
Hi Inge,
I didn't defined default scenario. I am not able to understand why we have to define default scenario.
Is it required.
Thanks,
Amit
Just by looking at your code it looks ok. But i have not tried to run it.
Just som things to check.
Have you defined a default scenario?
Can you see the email you try to send in the outgoing mail queue and see what status it got there?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156