Re: Re: Sending via stand alone SMTP on win98
| From: | Jason Wong | Date: | Fri, 16 Aug 2002 05:17:58 +0000 |
| Subject: | Re: Re: Sending via stand alone SMTP on win98 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112918@lists.php.net to get a copy of this message | ||
On Friday 16 August 2002 01:30, FoxRings / Michael wrote:
> I want to send mail under win98,
> and I know that this is the proper solution...
>
> -------snip--------
> Hope this work:
> --> edit your php.ini and type your SMTP server
>
> [mail function]
> ; For Win32 only.
> SMTP = yoursmtpserver.com
>
> Regards.
>
> Jhon R. Putra
> -------snip--------
>
> But my problem is how to get an indefinate number of semi-computer
> illeterate persons to edit that file... Not going to happen.
> So I need to do something in my code. Even if I rewrite the php.ini file
> from my install script.
You can use the phpmailer class (www.phpclasses.org). This is a complete
'self-contained' class for sending mail. It does not depend on the php.ini
settings as you can select which smtp server(s) to use from within class.
> I am using a copy of Jana Server (http://www.janaserver.de/) for this
> project.
>
>
> Also of note. I searched on the Jana Forum and it appears that Jana is not
> a full smtp server, but requires a secondary server to send to.
> So all I need now is a program that will install on 98 that is a stand
> alone smtp server. But if it will not execute .php scripts that is all
> right as long as I can get Jana to send to this secondary program that can
> do the actual sending of the mail.
>
> I need to do this because the mail is going out in bulk. (much to my utter
> dismay, but it's not my company. 'My job is not to ask why. But to do and
> die'.)
I would suggest that you forget about the added complications of setting up
your own smtp server and just point the above class to use your ISP's smtp
server instead.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
"With molasses you catch flies, with vinegar you catch nobody."
-- Baltimore City Councilman Dominic DiPietro
*/