New site does not send email

Hello everyone. I am new in goddady,  I have a 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 = "";

In web config I added the code 

   <smtp from="">
    <network host=""/>

What can I do else?