Reply All

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Bob McCoy Bob McCoy 8 months, 1 week ago.

  • Author
    Posts
  • #37171
    Profile photo of Vishal Joshi
    Vishal Joshi
    Participant

    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)

  • #37176
    Profile photo of Bob McCoy
    Bob McCoy
    Participant

    I'm not sure what the question is here.

You must be logged in to reply to this topic.