I am using SMTP to send emails by PHP. My client has a shared hosting. I created an email account there.
There is no information available about what will be the SMTP server for this account. I have tried: smtp.domainname.com But it's not able to connect.
How can I figure out my SMTP server host? any idea?
this really is a question for Serverfault.
Windows:
nslookup
and hit enterset type=MX
and hit enterLinux:
dig domain.name MX
and hit enter where domain.name is the domain you are trying to find out the smtp server for.If you do not get any answers back from your dns server, there is a good chance that there isn't any SMTP Servers set up for that domain. If this is the case, do like other's have suggested and call the hosting companies tech support.