Warren Tang wrote:
Thank you guys. It's Windows XP professional.
I once tried to configure php.ini to use smtp.gmail.com, but found that
the php.ini does not allow me to specify the user name and password, say
nothing of SSL.
Now I am focusing on how to make use of the SMTP Server in IIS which has
been installed on my PC. Is it possible to send an email to gmail using
my SMTP server?
Regards
Warren
Warren,
OK, so you've got a local email server - that's a good start. Once you
get your SMTP server going properly, you should be able to send email to
anyone, including gmail. The only restriction might be your ISP - as
Curtis said, many are not blocking port 25. You can easily test this
from a MS DOS Prompt, type:
C:>telnet smtp.gmail.com 25
If you get a response such as "220 mx.google.com ..." then your port 25
is not blocked. But if you get "Could not open a connection to host on
port 25 : connection failed" or similar, then your port 25 is blocked
and you won't be able to do anything about it (except change ISP's).
If the above test works, then you should be able to send email from your
machine to anyone on the planet (or off :-) ). Whether it will be
received is another story, however. Since you probably have a dynamic
IP address, some sites will reject email from dynamic IP addresses. The
last time I checked, gmail wasn't one of them, but others do.
Finally, your last hurdle is to bypass the anti-spam filters. One of
the more common reasons (other than the content, and one that you can
handle from your end) that emails are rejected as SPAM is because the
From: header doesn't have a valid email address (ReplyTo:, if present,
also needs a valid email address).
If your port 25 is blocked, or you're having problems getting past spam
filters, you might want to try PHPMailer. It's a great tool which will
do a lot of things, including the necessary authentication. And if your
port 25 is blocked, you can use port 587 (an alternate for authenticated
users only) to connect to gmail.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================