Jump to content

Archived

This topic is now archived and is closed to further replies.

Drezard

SMTP_PORT in PHP.ini *solved

Recommended Posts

Hello, I cant work out how to use the SMTP_PORT in PHP.ini. I have a normal email account with my isp that i wish to use. Im not sure what port it is or how to use it. I am trying to send emails using mail(). How do i send emails using the Isp email account (Outlook express program) and mail() to a hotmail account?

Thanks, Daniel

Share this post


Link to post
Share on other sites
The defualt port for a SMTP server is port 25, which is the defualt value for the smtp_port directive in the php.ini

If your ISP uses a port other than port 25, then it appears the smtp server requires authentication in order to use that server. If thats the case then you cannot use that smtp server as the mail function doesnt support any authentication protocols when sending emails.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.