I am having troubles sending a confirmation email after client has registered.
My code is below:
I run this code after inserting the record into the database and it sends an email perfectly to the client, but how to i then send another different email to the company to let them know the new registration.
I have tried adding another sub routine and putting it after the other sub like
doEmailClient
doEmailCompany
but company doesnt receive email, only client
Any ideas
My code is below:
Code:
Sub doEmailClient
Dim objEmail as New MailMessage
objMail.To = email.Text
objMail.From = xxxxx
objMail.Subject = xxxxx
objMail.Body = xxxx
objMail.BodyFormat = Mailformat.Html
SmtpMail.SmtpServer = xxxxx
Smtp.Send (objMail)
I run this code after inserting the record into the database and it sends an email perfectly to the client, but how to i then send another different email to the company to let them know the new registration.
I have tried adding another sub routine and putting it after the other sub like
doEmailClient
doEmailCompany
but company doesnt receive email, only client
Any ideas