Re: Help Out A Newbie In Configuring PHP.INI
| From: | David Robley | Date: | Sat, 16 Mar 2002 03:37:53 +0000 |
| Subject: | Re: Help Out A Newbie In Configuring PHP.INI | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88728@lists.php.net to get a copy of this message | ||
In article <20020315194034.36733.qmail@pb1.pair.com>,
ultimatezzz@hotmail.com says...
> Uh oh, did I ask this question before? If I did, I'm very sorry. =(
>
> "David Robley" <robleyd@paradise.net.nz> wrote in message
> news:MPG.16fc460a2506199f9896d0@news.php.net...
> In article <20020315014103.26660.qmail@pb1.pair.com>,
> ultimatezzz@hotmail.com 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 = drshim@alienmelon.com
> >
> >
> > 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 <robleyd@paradise.net.nz>
Date:
In article <20020214003314.57940.qmail@pb1.pair.com>,
ultimatezzz@hotmail.com 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 = drshim@alienmelon.com
>
> ; 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. 3201 IN 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:\WINDOWS>ping 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