I am using following code to send email in SharePoint from C# CSOM.
EmailProperties emailProperties = new EmailProperties(); emailProperties.To = toAddress; emailProperties.From = fromAddress; emailProperties.Body = body; emailProperties.Subject = subject; Utility.SendEmail(clientContext, emailProperties); clientContext.ExecuteQuery();
Its working fine. But when I try to send email on external domain like gmail.com it gives error.
The e-mail message cannot be sent. Make sure the e-mail has a valid recipient
I am understanding the problem but I need to know can I send email using
Utility.SendEMail to an other domain email address?
I am using SharePoint 2013 (CSOM C#)
I have gone through this. But I can't apply this settings.