473,238 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,238 software developers and data experts.

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

Aug 22 '05 #1
5 1708

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

Aug 22 '05 #2
*** Dross wrote/escribió (21 Aug 2005 20:57:30 -0700):
smtp=\\ser01; and none seem to work.


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
--
Aug 22 '05 #3
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

Aug 22 '05 #4
*** Dross wrote/escribió (22 Aug 2005 05:46:05 -0700):
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,
Then, rather than pinging do a telnet connection to port 25.
Additional info: the path to the mailserver is \\serv01\wgpo0000


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
--
Aug 23 '05 #5
A previous poster had suggested I lookup the setup in the OUTLOOK
account. That is what it said.

I'll try telneting.

thanks

Aug 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: manatlan | last post by:
In an intranet/lan, i'd like to put a "python server script" (which run forever) on a computer A... On another computer B, I'd like to send smtp-email to the computer A ... (send to...
0
by: Sean Lambert | last post by:
I'm trying to setup SQLMail on a SQL Server. The same server has an application running on it, which successfully uses Outlook as a mail client. I have setup a Mail Profile under Outlook for the...
1
by: Maligaya Park | last post by:
How do you setup SQL Mail? I tried following the procedures on the online manual but I do not understand what "On the instance of SQL Server, start the mail client using the newly created mail...
2
by: MLH | last post by:
I cut a mail function off the m'soft site. Has always worked. However, I would like to include error codes returned by the sendmail Fn and be able to understand what they mean. I had my first...
3
by: Nathan Sokalski | last post by:
I have an ASP.NET page that sends a Mail.MailMessage to several email addresses (all mine). However, one of the addresses, the one ending in @verizon.net, does not seem to be recieving the message...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
11
by: ibiza | last post by:
Hi all, I am trying to use the System.Net.Mail class for the first time, with ASP.NET 2.0. I setup everything according to http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives...
2
by: xx75vulcan | last post by:
Howdy, I have successfully setup my php.ini file on a web server to communicate with my Microsoft Exchange Mail server, and can test the ability to send mail using the mail() function to...
6
by: nextpulse | last post by:
On Fedora, using php5. The mail() function returns a success - but the mail itself is not actually sent. How do I go about debugging this? Do I need to do this at the linux command level to ensure...
6
by: phpmagesh | last post by:
Hi, I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details, problem is when i send mail it simple through waring msg...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.