Dear all,
Is it possible to set the priority of emails in Send SMTP Mail Message activity.
Thanks in advance.
Dear all,
Is it possible to set the priority of emails in Send SMTP Mail Message activity.
Thanks in advance.
I also have same requirement, I tried to use MailMessage property of it, but that is used as forwarded message attachment.
@PrankurJoshi Anyone?
See this
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

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)
Thanks for sharing the information.
I will execute the same.
If you already have the email object created, you can try using the Invoke Method activity, pass the email object as parameter and call the SetPriority method
Hi
Thanks for the solution you provided to set the priority. I have a requirement where I need to provide body message in HTML format along with setting high priority. Providing you the more details below.
While replying to the mail I have to change the subject, so I have used send SMTP activity to recreate reply mail by appending the actual mail content , from address & received time in the send mail.
Now the concern, we don’t have option to set priority in Send SMTP activity. I tried the solution for setting up the priority provided it worked but how I need to provide the body in the HTML format by appending the actual mail content.
Please help me with above scenario, also let me know if you require any additional details
Thanks in advance
Did you find any solution for this ? If so, do reply me