Is it possible to set the priority in Send SMTP Mail Message activity

studio

#1

Dear all,

Is it possible to set the priority of emails in Send SMTP Mail Message activity.

Thanks in advance.


#2

I also have same requirement, I tried to use MailMessage property of it, but that is used as forwarded message attachment.
@PrankurJoshi Anyone?


#3

See this

https://docs.microsoft.com/en-us/dotnet/api/system.web.mail.mailmessage.priority?view=netframework-4.7.2

 Sub SetPriority()
 create the mail message
Dim mail As New MailMessage()

set the addresses
mail.From = New MailAddress("me@mycompany.com")
mail.To.Add("you@yourcompany.com")

set the content
mail.Subject = "This is an email"
mail.Body = "this is the body content of the email."

specify the priority of the mail message
mail.Priority = MailPriority.High

send the message
Dim smtp As New SmtpClient("")
smtp.Send(mail)
End Sub 'SetPriority

image


#4

I tried it in this way, it forwarded as attached email.


#5

This works for me

		 Dim Smtp_Server As New SmtpClient
     Smtp_Server.Credentials = New Net.NetworkCredential("", "")
     Smtp_Server.Port = 587
	 Smtp_Server.EnableSsl=True
     Smtp_Server.Host = ""
	 email.From = New System.Net.Mail.MailAddress("")
     email.To.Add("")
	 email.Priority=System.Net.Mail.MailPriority.High
     Smtp_Server.Send(email)

#6

Thanks for sharing the information.

I will execute the same.