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)
};
Hello,
I edited your answer to protect your domain/ email address (botnets tend to search the web for email addresses on sites to add to spam lists).
But i am guessing your question is more aimed for your Hosting Provider (as SolidCP is just a hosting control panel, it does not configure or setup the servers them selfs, it just manages them).
Regards,
Marco
Thank you Marco for updating, how can i know who is my hosting provider? (apologies in advance if question is stupid)
There's no such thing as a stupid question, only stupid answers 🙂
The easiest way to check who your hosting provider is is to simply follow the money: who did you pay for the services? (did they email you an invoice, did you login to a website to pay ? ) The ones you made the money to are generally your hosting provider.
got it!