Email notification
-
Hello, I am currently doing online service log where users can post their messages. Just want to ask how I can make an email notification to the user if their message has a new post message? Just like what we have in this forum where link to the site is also included. Thanks in advance.
-
Hello, I am currently doing online service log where users can post their messages. Just want to ask how I can make an email notification to the user if their message has a new post message? Just like what we have in this forum where link to the site is also included. Thanks in advance.
try this send mail code. Dim client As New SmtpClient(host as string,port as integer) Dim message As New MailMessage(from as string,to as string,subject as string,body as string) client.Send(message)
Sathesh Pandian
-
try this send mail code. Dim client As New SmtpClient(host as string,port as integer) Dim message As New MailMessage(from as string,to as string,subject as string,body as string) client.Send(message)
Sathesh Pandian
-
Hi.. thanks for your reply. I really appreciate if you could be more specific with the code. Thanks in advance.
Dim EmailFrom As New MailAddress("send email address", "Web site name") Dim EmailTo As New MailAddress("users email address", "Users name to send to ") Dim message As New MailMessage(EmailFrom, EmailTo) message.Subject = "Web Site Error" message.IsBodyHtml = True message.Body = "This is a new email for you" Dim Client As New SmtpClient("Your SMTP Server") Client.UseDefaultCredentials = False Client.Credentials = Creds Client.Port = 25 Client.Send(message)