Connecting Tech Pros Worldwide Help | Site Map

mail: php.ini setup

  #1  
Old August 22nd, 2005, 05:05 AM
Dross
Guest
 
Posts: n/a
I keep getting the "failure to connect" error message when trying to
send an email.

My system (engr01, winxp) is running a webserver and php, the mail
server is on a different system (ser01, win2000) on the intranet.

I have tried many combinations of

smtp=\\ser01; and none seem to work.

any ideas?

thanks

  #2  
Old August 22nd, 2005, 05:25 AM
Ramon
Guest
 
Posts: n/a

re: mail: php.ini setup



I'm assuming you would need to provide the full address of your stmp
server. Something along the lines of stmp.example.com
That is if the server is visible on the intranet, your best bet is to
check your Outlook/Thunderbird Account settings, and include the address
of that SMTP in php.ini

Also you would have to make sure that the stmp host is accepting
connections from the machine where PHP is installed, in this case I
belive thats your PC.

Hope that helps.


Cheers,

D
[color=blue]
> Dross wrote:
> I keep getting the "failure to connect" error message when trying to
> send an email.
>
> My system (engr01, winxp) is running a webserver and php, the mail
> server is on a different system (ser01, win2000) on the intranet.
>
> I have tried many combinations of
>
> smtp=\\ser01; and none seem to work.
>
> any ideas?
>
> thanks[/color]
  #3  
Old August 22nd, 2005, 08:35 AM
Alvaro G Vicario
Guest
 
Posts: n/a

re: mail: php.ini setup


*** Dross wrote/escribió (21 Aug 2005 20:57:30 -0700):[color=blue]
> smtp=\\ser01; and none seem to work.[/color]

SMTP protocol has nothing to do with Microsoft Windows shares. You must
provide the domain name or IP address of the machine, something like:

smtp=ser01
smtp=ser01.full.domain.name
smpt=192.168.0.200

(it depends on your LAN settings)


--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
  #4  
Old August 22nd, 2005, 01:55 PM
Dross
Guest
 
Posts: n/a

re: mail: php.ini setup


I opened a dos window and pinged the mail server, the reponse was from
10.4.0.2
I entered that smtp=10.4.0.2; in the php.ini and I get

Warning: mail(): Failed to connect to mailserver at "10.4.0.2" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
in C:\xitami\xitami-24\app\webpages\alert_equipment_calibration.php on
line 18

Additional info: the path to the mailserver is \\serv01\wgpo0000

(What I am trying to do is once a day email to those who care a file
listing all the equipment that needs to be collected from the
production floor for calibration.)

thanks

  #5  
Old August 23rd, 2005, 07:55 AM
Alvaro G Vicario
Guest
 
Posts: n/a

re: mail: php.ini setup


*** Dross wrote/escribió (22 Aug 2005 05:46:05 -0700):[color=blue]
> I opened a dos window and pinged the mail server, the reponse was from
> 10.4.0.2
> I entered that smtp=10.4.0.2; in the php.ini and I get
>
> Warning: mail(): Failed to connect to mailserver at "10.4.0.2" port 25,[/color]

Then, rather than pinging do a telnet connection to port 25.
[color=blue]
> Additional info: the path to the mailserver is \\serv01\wgpo0000[/color]

That's impossible: \\serv01\wgpo0000 is a Windows share (i.e., a folder or
printer). You can't have a mail server in a folder, mail servers are
programs that listen on TCP ports (more specifically, port 25).



--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
  #6  
Old August 23rd, 2005, 12:25 PM
Dross
Guest
 
Posts: n/a

re: mail: php.ini setup


A previous poster had suggested I lookup the setup in the OUTLOOK
account. That is what it said.

I'll try telneting.

thanks

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
php extensions and windows... specifically extension_dir Chris Paul answers 3 December 5th, 2005 12:45 AM
Cannot use mail() in IE, only works in a debugger--help baustin75@gmail.com answers 8 October 5th, 2005 06:15 PM
Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini aa answers 6 July 17th, 2005 10:29 AM
PHP.ini and SMTP King Kong answers 1 July 17th, 2005 07:56 AM