powershell icon indicating copy to clipboard operation
powershell copied to clipboard

Unable to send mail outside my organisation i.e. not recieving mail in external domain like gmail.com

Open kaushalbcactus opened this issue 2 years ago • 1 comments

Reporting an Issue or Missing Feature

I am unable to send email outside my organisation even if I am using my organisation id and password as mentioned in example

Expected behavior

Please describe what output you expect to see from the PnP PowerShell Cmdlets

Actual behavior

Mail to be triggered to both internal and external users like [email protected]

Steps to reproduce behavior

Send-PnPMail -To "[email protected]" -Subject "Test" -Body "Test" -From '[email protected]' -Password 'xxx'

What is the version of the Cmdlet module you are running?

(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable) 1.10.0

Which operating system/environment are you running PnP PowerShell on?

  • [ ] Windows
  • [ ] Azure Functions

kaushalbcactus avatar Jul 15 '22 10:07 kaushalbcactus

@kaushalbcactus do you receive any errors when trying to use this cmdlet? If so, could you please provide details of these errors.

CallumCrowley avatar Jul 26 '22 15:07 CallumCrowley

Hi, this is not supported by SharePoint itself. You can only send mails to authenticated users in SharePoint/Azure AD. Would suggest you use a third party provider for such a thing. Check the link here:

https://sharepoint.stackexchange.com/a/280529/8068

gautamdsheth avatar Aug 23 '22 14:08 gautamdsheth