Re: [PHP] SMTP
- From: raf.news@xxxxxxxxx ("Alain Roger")
- Date: Mon, 10 Mar 2008 18:26:55 +0100
Hi Ray,
we tested it with telnet and it seems that it works... but my mail client
does not receive it. :-(
php mail function just tells me that email can not be delivered.
here is the function:
if (mail($to, $subject, $body))
{
echo("<p>Message successfully sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
and it returns false... so message delivery failed.
and i use on the same local PC so no ISP. server is used.
Al.
I'm curious what's the error you get when you use the "mail" function?
Also, if you have SMTP running on port 25 you should be able to "telnet
localhost 25" and run some SMTP commands (EHLO, etc).
Beware as well that some ISPs block port 25 so you may need to use their
SMPT
server instead of yours, if you can telnet your SMTP server but not send
emails,
then you either:
1 - Need to authenticate yourself against your SMTP server, or
2 - You have port 25 blocked, and need to use your ISP's server, or an
external
SMTP server that you can talk to on a port other than 25.
Regards,
Rob
Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL
33308 |
TEL 954-607-4207 | FAX 954-337-2695 |
Email: info@xxxxxxxxxxxxx | MSN Chat: best@xxxxxxxxxxxxx | SKYPE:
bestplace |
Web: bestplace.biz | Web: seo-diy.com
--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008
- References:
- SMTP
- From: "Alain Roger"
- Re: [PHP] SMTP
- From: Ray Hauge
- Re: [PHP] SMTP
- From: "Alain Roger"
- RE: [PHP] SMTP
- From: Andrés Robinet
- SMTP
- Prev by Date: Re: Generating JavaScript menus on-the-fly
- Next by Date: Re: [PHP] Re: Generating JavaScript menus on-the-fly
- Previous by thread: RE: [PHP] SMTP
- Next by thread: Re: [PHP] SMTP
- Index(es):
Relevant Pages
|