|
Posted by Jerry Stuckle on June 3, 2008, 8:40 am
Please log in for more thread options
Beauregard T. Shagnasty wrote:
> My shared web host has made some sort of upgrade to .. something .. the
> support tech can't tell me what. It's a cPanel system, with all the
> regular stuff. The site is a club site.
>
> For years, I have been using the regular old mail(...) function for
> things like sending broadcast messages to members. Yesterday, that
> failed. The host now tells me I need to access the SMTP server directly,
> using a valid email account and password. "It's a new security measure
> to prevent spamming. Go find a script," was the tech's reply.
>
> I found one, at:
> http://us3.php.net/manual/en/ref.mail.php
> 2/3rds down, search the page for:
> josephcmiller2 at gmail dot com
>
> Port 25 doesn't work; the tech finally told me to try port 587. That
> helps. No authentication is required, he said. However, the script fails
> at:
>
> // Say hello...
> fputs($cp, "HELO ".$GLOBAL["SMTP_SERVER"]."\r\n");
> $res=fgets($cp,256);
> if(substr($res,0,3) != "250") return "Failed to Introduce";
>
> ..and I don't know what to do after that. $GLOBAL["SMTP_SERVER"]
> contains the name of the server, ("mail.example.com") which works for
> the fsockopen() code preceding the HELO lines. Any ideas, folks?
>
Get phpmailer. It handles all of that.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|