Send an email through Powershell adding a hyperlink in the body

Bonhikona Paul 1 Reputation point
2020-08-07T14:07:13.503+00:00

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.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,685 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 107.7K Reputation points MVP
    2020-08-07T14:19:43.593+00:00

    Simply set the body format to HTML and use the relevant tags for links.


  2. 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).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.