Simply set the body format to HTML and use the relevant tags for links.
Send an email through Powershell adding a hyperlink in the body
Hi,
I am sending a mail through Powershell with the body as (for example):
$body = @"
Hi,
We are sending this mail for reminder. Please check you email and reply us soon.
Before you send the mail, you need to follow the steps mentioned in the Link.
Please confirm ASAP.
Thanks
"@
So the requirement is to give hyperlink in place of "us" (id@Stuff .com) and "Link"( URL).
Please help me to give hyperlink in the email through Powershell.
Please let me know if you have any further query on this.
2 answers
Sort by: Most helpful
-
-
Wendy Li_MSFT 1,711 Reputation points Microsoft Vendor
2020-08-10T03:18:16.997+00:00 Designing Windows PowerShell cmdlets is not currently supported here on QnA.
The supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).