Jump to content

Send Email


sivaprakas

Recommended Posts

Hi i m new to PHP

i try to send simple email msg but i got the following error

Failed to connect to mailserver at "localhost:8080" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

 

i run both IIS and Apache server on my machine

IIS port 80

Apache port 8080

 

my php SMTP configuratiuon is

[mail function]

; For Win32 only.

SMTP = localhost:8080

smtp_port = 25

 

so how can i solve this problem

Link to comment
Share on other sites

What is your overall goal?

 

You can install a local mail server for testing (send mail to yourself) or you can use your ISP's mail server (requires using SMTP authentication, which requires use of one of the php mailer classes.) If you want to actually send email to another mail server from a local mail server your local mail server must have a domain name associated with it and proper DNS zone records on a DNS server for other mail servers to accept mail from it.

Link to comment
Share on other sites

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.