0

I am trying to send email from my email mymail@domain.pk but i need port number and hostname but i can not find it in cpanel

 

var smtp = new SmtpClient
{
Host = “smtp.domain.pk”,  //my guess (not sure)
Port = 587,
EnableSsl = true,
DeliveryMethod = SmtpDeliveryMethod.Network,
UseDefaultCredentials = false,
Credentials = new NetworkCredential(fromEmail.Address, fromEmailPass)
};

Asked question