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?
You can generally find your SMTP email server address in the account or settings section of your mail client. When you send an email, with SMTP host Gmail or AOL, the SMTP server processes your email, decides which server to send the message to, and relays the message to that server.
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.
generally smtp servers name are smtp.yourdomain.com or mail.yourdomain.com open command prompt try to run following two commands
>ping smtp.yourdomain.com
>ping mail.yourdomain.com
you will most probably get response from any one from the above two commands.and that will be your smtp server
If this doesn't work open your cpanel --> go to your mailing accounts -- > click on configure mail account -- > there somewhere in the page you will get the information about your smtp server
it will be written like this way may be :
Incoming Server: mail.yourdomain.com IMAP Port: --- POP3 Port: --- Outgoing Server: mail.yourdomain.com SMTP Port: ---
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With