Problem with email

Discussion in 'ASP.NET / ASP.NET Core' started by john_a_antoniou, Nov 13, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I call this function to send an email.


    Can anybody help me?








    Public Function sendEmail(ByVal sender As String, ByVal subject As String, ByVal body As String) As Boolean


    Dim objMsg As New MailMessage


    Dim flag As Boolean


    Try


    objMsg.To = [email protected]


    objMsg.From = "[email protected]"


    objMsg.Priority = MailPriority.High


    objMsg.Subject = "Testing...."


    objMsg.Body = "testing...."


    SmtpMail.SmtpServer = "mail.e-blackboard.com"


    SmtpMail.Send(objMsg)


    flag = True


    Catch


    flag = False


    End Try


    Return flag


    End Function
     
  2. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

  3. Thanks. Now it is working[​IMG]
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page