corbin Posted July 10, 2006 Share Posted July 10, 2006 Im about 90% sure this is in the wrong section, but I didnt know where else to put it :(. Anyways can someone tell me of a free mail server thatll run on windows, and has a decent amount of features...? Quote Link to comment https://forums.phpfreaks.com/topic/14217-mail-server/ Share on other sites More sharing options...
corbin Posted July 10, 2006 Author Share Posted July 10, 2006 Uhhhh, what you said makes no sense... All I'm asking is what is a decent mail server for windows... At the moment I'm messin with IIS's SMTP thing, but I dont like it very much....... Quote Link to comment https://forums.phpfreaks.com/topic/14217-mail-server/#findComment-55789 Share on other sites More sharing options...
ShogunWarrior Posted July 10, 2006 Share Posted July 10, 2006 Try: http://www.hmailserver.com/ It's open source, free and for windows. Quote Link to comment https://forums.phpfreaks.com/topic/14217-mail-server/#findComment-55791 Share on other sites More sharing options...
corbin Posted July 10, 2006 Author Share Posted July 10, 2006 Thanks. I'll try it :). Quote Link to comment https://forums.phpfreaks.com/topic/14217-mail-server/#findComment-55879 Share on other sites More sharing options...
corbin Posted July 10, 2006 Author Share Posted July 10, 2006 Downloaded it and installed it, but i have something setup wrong i guess. When ever I try to use [code]<?$to = '<me>@hotmail.com';$subject = 'test';$message = 'test';$headers = "From: \r\n" . 'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n";// Sendmail($to, $subject, $message, $headers); ?>[/code]I get the error message Warning: mail() [function.mail]: SMTP server response: 550 550 Delivery is not allowed to this address. in Y:\public_html\common\mail.php on line 12 Quote Link to comment https://forums.phpfreaks.com/topic/14217-mail-server/#findComment-55896 Share on other sites More sharing options...
redarrow Posted July 10, 2006 Share Posted July 10, 2006 Have you setup the php.ini correctlysmtp_port Quote Link to comment https://forums.phpfreaks.com/topic/14217-mail-server/#findComment-55900 Share on other sites More sharing options...
tomfmason Posted July 10, 2006 Share Posted July 10, 2006 I am not familiar with that server but this means that you have not enabled send fake mail in your php.iniI use Mecury Mail Server on Windows.Try this and see if it works. I don't think that you will be able to send html mail with it though[code=php:0]<?php$knownsender = "you@yourdomain.com"; // this has to be an authorized account on your server$mailtos = "$to"; // who ever this email is being sent to$subject = "your subject";$message = "Dear Web Master, You have received a message from someone at OWPT. Frist Name: $first_name Last Name: $last_name Email Address: $email The message is: $body Thanks! WebMaster, Owpt.biz This is an automated response, please do not reply!";if ($ccaddress=="" || $ccaddress==" "){ $header="From: $knownsender"; }else{ $header .="From: $knownsender\r\n"; $header .=" Cc: $ccaddress";}// $header.="Bcc: $bcaddress";if (@mail($mailtos, $subject, $message, $header)){ $message ="success"; include("contact.php");}else{ $message ="error"; include("contact.php"); }?>[/code]This is an example of the sendmail.php for one of my sites. All you do is create a form that posts the data to this. Like I said I am not sure if this will work for your mail server or not but it is worth a try.here is an example of the form that posts to it[code=php:0]<?php$filename = "contact.php";$title = "Contact Us";if ($message =='success') { $text ="Your message has been sent and we will reply shortly";}elseif ($message =='error') { $text ="There was an error in creating your message";}else{ $text ="";} $content = " <div class=\"feature\"> <p> <h3>Contact Us</h3> </p> <p><b>$text</b></p> <form method=\"POST\" action=\"send.php\"> <p> First Name <input type=\"text\" name=\"first_name\" id=\"first_name2\"></p> <p> Last Name <input type=\"text\" name=\"last_name\" id=\"last_name\"></p> <p> Your Email <input type=\"text\" name=\"email\" id=\"email\"></p> <p> Subject <select size=\"1\" name=\"D1\" multiple><option></option><option></option><option></option><option></option><option></option></select></p> <p> <textarea cols=\"38\" rows=\"10\" name=\"body\"></textarea></p> <p> <input type=\"submit\" name=\"Submit\" value=\"Send\"></p> </form> </div>";include("includes/main.php")?>[/code]You can edit the structure to fit your page Quote Link to comment https://forums.phpfreaks.com/topic/14217-mail-server/#findComment-55902 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.