Forum Discussion

R_U_Lucky's avatar
R_U_Lucky
Copper Contributor
Dec 15, 2020

Web Application Outgoing email settings overriding event receivers

Hi,

 

I have a web application that has the default outgoing email settings to some default values, and in this web application i have a custom site collection that uses an event receiver to send emails to another system on behalf of the users. Recently the site started using the values set on the web application instead of the ones in the event receiver provided to the SendEmail method.

Does anyone have any idea why and what can i do?

 

Thank you.

  • R_U_Lucky's avatar
    R_U_Lucky
    Copper Contributor

    Hi,

    It turned out that the SPUser emails property was empty.

    Im still identifing the root cause, but it seems that there was a change in the AD mappings and user profile may have syncqued the empty values.

Resources