Reply All

Hi All,
i am sending an email notification automatically using powershell in every one hour to same mail id.
when the mail triggering it will not continuing the chain it is sending seperate mail.
i need to continue mail chain by sending same mail. the below code i wrote to send mail.
$fromaddress = “@gmail.com"
$toaddress = "
@gmail.com
$Subject = “XYZ”
$body = “abcdefg”
$smtpserver = “smtp.gmail.com

	####################################
	$message = new-object System.Net.Mail.MailMessage
	$message.From = $fromaddress
	$message.To.Add($toaddress)
	$message.IsBodyHtml = $True
	$message.Subject = $Subject
	
	$message.body = $body
	$smtp = new-object Net.Mail.SmtpClient($smtpserver)
	$smtp.Send($message)

I’m not sure what the question is here.