Re: [PHP] SMTP



Ok, thanks for info, i've downloaded the MailEnable SW for free and i was
able to check that my PHP mail function really send correctly emails :-)
thanks a lot,

A.

On Mon, Mar 10, 2008 at 3:33 PM, Daniel Brown <parasane@xxxxxxxxx> wrote:

On Sun, Mar 9, 2008 at 4:38 PM, Alain Roger <raf.news@xxxxxxxxx> wrote:
Hi,

i know that this is not necessary the best forum for that, but i need
to get
a real feedback and i guess you already faced the same issue as mine.
basically, i develop php web application on windows XP platform.
So i have apache 2.24 installed and PHP 5.2.4.

now i would like to test if my application send emails, so i've checked
my
php.ini file and it seems ok.
i tried to use IIS from windows to define a default SMTP server, but as
my
emails are not sent, i guess something is wrong with IIS.

So which HTTP server are you using? You stated earlier that you
have Apache 2.24 on there, but here you say that you're using IIS. If
you're using Apache, the IIS web server configuration will have
nothing to do with anything.

so does it exist a free SMTP server (similar that linux daemon) but
running
on windows XP ?

I may be incorrect on this, but I'm pretty sure that
Win2K/XP/Vista have Microsoft Exchange bundled in for SMTP. Check in
Add/Remove Programs > Windows Components > Internet Information
Services (I think, but I'm guessing.... I really don't use Windows
that often). Even though it has the same name (IIS), in this case,
it's the category for all Internet services. There should be
something mentioning SMTP there.

if yes, where can i find it and what steps should i perform to be sure
my
emails are sent ?

Check the logs for Exchange/SMTP or whatever other MTA you decide
to use and see if there's anything mentioned about the problem. It
could be an authentication/negotiation issue. Also, check your
Windows firewall (or third-party software) to ensure that you can
connect to localhost:25. The easiest way to test this is as follows:

Start > Run
Type: cmd
Type: telnet localhost 25
If it connects, type: HELO localhost
Note the response.

You can then try sending a message through the server manually, if
you'd like. While still connected via Telnet as shown above, type the
following (replacing things as necessary):

MAIL FROM: you@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
RCPT TO: youraddress@xxxxxxxxxx
DATA
Subject: Testing Email from Telnet
This is a test.
.

Always end with a period on a line of its own. That should show
you what, if any, error messages are being kicked out by your SMTP
server.

--
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>




--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008


Relevant Pages

  • RE: phpBB Worm
    ... the getpwent function is not supported on Windows. ... it probably depends on the web server ... I looked at the decoded Perl script, ... was invoked by PHP, which should have the Web server's permissions, ...
    (Bugtraq)
  • Re: Cannot reply - 0X800CCC79 error
    ... Computer A can access the account, reply, and send emails with no ... Computer A is set up with no X in My server requires ... Computer A has Windows XP Pro. ... I am wondering about firewall but the Windows ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Viewing other users mailboxes on Windows Mail
    ... Delivery | Delete from server when deleted from "Deleted Items" ... I recently purchased a new PC with Windows Vista Home Premium + Windows ... When either user connects to Windows Mail the new emails ...
    (microsoft.public.windows.vista.mail)
  • Re: Absolutely no php knowledge
    ... Will the coding and/or command structure used for building anything in php ... or using Apache be similar to what I would find on a unix base server? ... The local machine would be for nothing other ... that I've learned on my local Windows based "test ground" and apply it ...
    (alt.php)
  • Re: Looking for e-commerce recommendations
    ... Some Hosts do not install PHP or Perl on Windows servers, ... On my own server, both PHP and Perl run very nicely - ... > My understanding is that PHP scripts should be ok for Windows ...
    (microsoft.public.frontpage.programming)