Bob, 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. php.ini: [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 ... -S >------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 >- >-Bob, >- >-Windows is requiring you to use SMTP to send your e-mail. Your best >-best >-is to download the PHP Mailer Class and extend it to fit your own >-purposes. That should work just fine. >- >- - http://phpmailer.codeworxtech.com/index.php?pg=sf&p=dl >-<http://phpmailer.codeworxtech.com/index.php?pg=sf&p=dl> >- >--- >--Jack Timmons >-http://www.trotlc.com >- >---------------------------------------- >- >-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 >-contact.php >-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 >-don't >-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 >-for >-other purposes. >- >-Before I punt and move the domain, any other suggestions? At this >-point >-it's just to know.... >- >-Thx, Bob >- >--- >- >-* * Please support the community that supports you. * * >-http://evolt.org/help_support_evolt/ >- >-For unsubscribe and other options, including the Tip Harvester >-and archives of thelist go to: http://lists.evolt.org >-Workers of the Web, evolt !