In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Uh oh, did I ask this question before? If I did, I'm very sorry. =(
David Robley [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Note that I'm using the Windows version of PHP.
Whenever I use a mail() function in my PHP code I get an error of Failed
to
Connect on line number. So, I'm guessing my error lies in the PHP
configuration file. I searched around the PHP.INI file for anything
resembililing mail. I found these two lines:
[mail function]
; For Win32 only.
SMTP = alienmelon.com
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
I filled them out also, as you see above. Did I fill them out correctly?
Even though I filled them out as you see above I still get the same error.
Is the root of the error in the .ini at all?
I have feeling of deja vu here. Is alienmelon.com a valid mail server? If
not, you need to change it to something that is.
Well, aroung 14 Feb I ended up saying this to an address that might or
might not be yours :-):
Subject: Re: [PHP] Troubles With Mail Function
From: David Robley [EMAIL PROTECTED]
Date:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Alright, I will show you my entire mail code here. BTW: I cannot mail using
mail() function
[mail function]
; For Win32 only.
SMTP = mindspring.com
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
; For Unix only. You may supply arguments as well (default:
'sendmail -t -i').
;sendmail_path =
I'm using Windows XP at the moment to develop.
I'm not quite sure what I'd put under SMTP...is there any tutorials online
that would show me how to configure this right?
In addition to my previous message - OK, I've gone and put the necessary
software on the linux side of this thing and asked the appropriate
questions - if I do a 'dig' on alienmelon i find:
; DiG 9.1.2 -t mx alienmelon.com
;; global options: printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 43766
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; QUESTION SECTION:
;alienmelon.com.IN MX
;; ANSWER SECTION:
alienmelon.com. 28739 IN MX 10 mail.alienmelon.com.
;; AUTHORITY SECTION:
alienmelon.com. 163967 IN NS NS.HOST4U.NET.
alienmelon.com. 163967 IN NS NS2.HOST4U.NET.
;; ADDITIONAL SECTION:
mail.alienmelon.com.28739 IN A 64.33.108.112
NS.HOST4U.NET. 170095 IN A 209.150.128.30
NS2.HOST4U.NET. 3201IN A 209.150.129.3
;; Query time: 154 msec
;; SERVER: 203.96.152.4#53(203.96.152.4)
;; WHEN: Thu Feb 14 16:07:51 2002
;; MSG SIZE rcvd: 146
which implies that alienemelon uses mail.alienmelon.com to handle its
mail. So a ping to that to see if it exists gives us
C:\WINDOWSping mail.alienmelon.com
Pinging mail.alienmelon.com [64.33.108.112] with 32 bytes of data:
Reply from 64.33.108.112: bytes=32 time=329ms TTL=239
Reply from 64.33.108.112: bytes=32 time=325ms TTL=239
Reply from 64.33.108.112: bytes=32 time=315ms TTL=239
Reply from 64.33.108.112: bytes=32 time=315ms TTL=239
Ping statistics for 64.33.108.112:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 315ms, Maximum = 329ms, Average = 321ms
C:\WINDOWS
so it seems to exist. I suggest you try mail.alienmelon.com as the SMTP
entry in your config and see what happens.
--
David Robley
Temporary Kiwi!
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php