Hi everyone. please help me, i am trying to send an email from a web form in asp.net
this is what i have
Dim objMM As New MailMessage
objMM.To = "mail@mymail.com"
objMM.From = "mail@mymail.com"
objMM.Cc = "mail@mymail.com"
objMM.Bcc = "mail@mymail.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "Hello!"
objMM.Body = "Please NOTE" & vbCrLf & vbCrLf & "testing email."
SmtpMail.Send(objMM)
when debugging, everything is right until the
SmtpMail.Send(objMM), i get this "Expression does not produce a value."
am i doing something wrong?
thank you
this is what i have
Dim objMM As New MailMessage
objMM.To = "mail@mymail.com"
objMM.From = "mail@mymail.com"
objMM.Cc = "mail@mymail.com"
objMM.Bcc = "mail@mymail.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "Hello!"
objMM.Body = "Please NOTE" & vbCrLf & vbCrLf & "testing email."
SmtpMail.Send(objMM)
when debugging, everything is right until the
SmtpMail.Send(objMM), i get this "Expression does not produce a value."
am i doing something wrong?
thank you