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
https://forums.phpfreaks.com/topic/155145-send-email/
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
https://forums.phpfreaks.com/topic/155145-send-email/#findComment-816155
Share on other sites

Archived

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

×
×
  • 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.