Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 22nd, 2005, 05:05 AM
Dross
Guest
 
Posts: n/a
Default mail: php.ini setup

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
Default 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
Default 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
Default 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
Default 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
Default 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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles