Jump to content

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
Link to comment
https://forums.phpfreaks.com/topic/18880-smtp_port-in-phpini-solved/
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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.