New

Asp.net site does not send email

Hello everyone. I am new in goddady,  I have a asp.net mvc site here, but email sending not working. In server code I write the following 

var emailmessage = new System.Web.Mail.MailMessage()
            {
                Subject = subject,
                Body = body,
                From = from,
                To = to,
                BodyFormat = MailFormat.Html,
                Priority = MailPriority.High
            };
           

            SmtpMail.SmtpServer = "relay-hosting.secureserver.net";
            SmtpMail.Send(emailmessage);

In web config I added the code 

<system.net>
  <mailSettings>
   <smtp from="admin@flex.am">
    <network host="relay-hosting.secureserver.net"/>
   </smtp>
  </mailSettings>
 </system.net>

What can I do else?

Thanks!