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.

Community Center | Not monitored
0 comments No comments

2 answers

Sort by: Most helpful
  1. Wendy Li 1,711 Reputation points Moderator
    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).

    Was this answer helpful?

    0 comments No comments

  2. Vasil Michev 127.3K Reputation points MVP Volunteer Moderator
    2020-08-07T14:19:43.593+00:00

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

    Was this answer helpful?


Your answer

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