Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smtp configuration is ignoring the From appsetting #11263

Closed
enashnash opened this issue Oct 4, 2021 · 2 comments · Fixed by #11266
Closed

Smtp configuration is ignoring the From appsetting #11263

enashnash opened this issue Oct 4, 2021 · 2 comments · Fixed by #11266

Comments

@enashnash
Copy link

Which exact Umbraco version are you using? For example: 8.13.1 - don't just write v8

9.0.0

Bug summary

Smtp configuration is ignoring the From appsetting.

Specifics

Inviting a user does not take account of the From setting in appsettings.

I'm getting the below error with

"Smtp": {
"From": "[email protected]",
"Host": "smtp.office365.com",
"Port": 587,
"Username": "[email protected]",
"Password": "********"
}

Failed to invite user
5.2.252 SendAsDenied; [email protected] not allowed to send as [email protected]; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message.

Note the error is stating that the email is sending as [email protected] (the logged in user) instead of [email protected].

This works fine with Google Workspace accounts but not for Office 365 which doesn't allow this.

Also note that the equivalent configuration for v8 works as expected.

Steps to reproduce

Set up the appsettings file to send an email through Office 365.

Invite a new user from inside Umbraco.

The invitation will fail and show an error dialog in Umbraco with the above error message.

Expected result / actual result

The email should be sent successfully.

bergmania added a commit that referenced this issue Oct 4, 2021
Fixes issue where we used the current users email when sending invite emails. Now we use the one from SMTP settings like in v8
@bergmania
Copy link
Member

Hi @enashnash.. Thanks for reporting.. I found the reason and will revert to same behavior as in Umbraco 8.

@Zeegaan
Copy link
Member

Zeegaan commented Oct 5, 2021

This issue is now fixed in #11266, thanks again for reporting the issue 🐛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants