[thelist] mail() on windows server

Simon MacDonald simonmacdonald at uk2.net
Mon Dec 29 13:07:34 CST 2008


I hadn't really tried much to get mail working on windows, but after your
email I've been playing and I've kinda got it to work on Vista.


[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

I downloaded Argo mail server for windows
(http://www.argosoft.com/rootpages/MailServerNET/Default.aspx) and installed
that. I copied your php code and sent myself a mail from one of my gmail  to
one of my email addresses. I had to set Relay allowed. I discovered that my
hosting service doesn't allow mailservers on their adsl lines BUT I was
getting bounce back failure messages to my gmail address.

Dunno if this helps ...


>------Original Message-----
>-From: thelist-bounces at lists.evolt.org [mailto:thelist-
>-bounces at lists.evolt.org] On Behalf Of Bob Meetin
>-Sent: 29 December 2008 17:47
>-To: thelist at lists.evolt.org
>-Subject: Re: [thelist] mail() on windows server
>-Windows is requiring you to use SMTP to send your e-mail. Your best
>-is to download the PHP Mailer Class[1] and extend it to fit your own
>-purposes. That should work just fine.
>-[1] - http://phpmailer.codeworxtech.com/index.php?pg=sf&p=dl
>--Jack Timmons
>-Okay, I've been going through the suggestions and still haven't gotten
>-this to work.   I could very easily punt and move the site to hostgator
>-(takes 15 minutes max) and get it to work or keep plugging at this.
>-On the windows server I have tried some of the options that suggest to
>-make changes to the php.ini, but I have to do via .htaccess to set the
>-smtp server but no luck.  I also added a couple lines in the
>-file which, if I understand, should make this work, but also no luck.
>-In contact.php:
>-ini_set("sendmail_from", "bobm at dottedi.biz");
>-#ini_set("smtp", "smtp-9.luxsci.com"); // preferred choice
>-ini_set("smtp", "mail.dottedi.biz"); // should work fine
>-ini_set("smtp_port", "25");
>-I took a look at phpmailer.  I like it and am able to get it to work on
>-the linux server, but not windows using the same SMTP settings.  I
>-think it is a problem with the path as it seems to attempt to connect.
>-phpmailer includes a function to email attachments - I will use that
>-other purposes.
>-Before I punt and move the domain, any other suggestions?  At this
>-it's just to know....
>-Thx, Bob
>-* * Please support the community that supports you.  * *
>-For unsubscribe and other options, including the Tip Harvester
>-and archives of thelist go to: http://lists.evolt.org
>-Workers of the Web, evolt !

More information about the thelist mailing list