Hello!

I have a Win2000 srv with Apache&PHP&MySQL running.

For sending mails, I got relay access from another machine (let's say mail-server).

Ok, 1st I tested the mail server using telnet. All works fine, I received an email in my mailbox.

I edited php.ini file:

[mail function]
; For Win32 only.
SMTP = mail-server
smtp_port = 25

; For Win32 only.
sendmail_from = webmaster@domain.com

With a simple test using mail() function, I get this warning:

Warning: mail() [function.mail]: Failed to connect to mailserver at "mail-server" port 25, 
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in 
\tests\mail.php on line 2

Meanwhile, I tried to use PEAR with Net_SMTP function. I used the test files form \tests\Net_SMTP. After setting up the mail server, I'm getting this error:

Failed to connect socket: An established connection was aborted 
by the software in your host machine.

Please, someone can help me with this issue?

Thanks!

    Write a Reply...