Jump to content


Photo

Mail Server


  • Please log in to reply
6 replies to this topic

#1 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 10 July 2006 - 07:55 PM

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...?
Why doesn't anyone ever say hi, hey, or whad up world?

#2 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 10 July 2006 - 08:14 PM

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.......
Why doesn't anyone ever say hi, hey, or whad up world?

#3 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 10 July 2006 - 08:18 PM

Try: http://www.hmailserver.com/
It's open source, free and for windows.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

#4 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 10 July 2006 - 09:51 PM

Thanks.  I'll try it :).
Why doesn't anyone ever say hi, hey, or whad up world?

#5 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 10 July 2006 - 10:25 PM

Downloaded it and installed it, but i have something setup wrong i guess. When ever I try to use

<?
$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";

// Send
mail($to, $subject, $message, $headers); 
?>

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
Why doesn't anyone ever say hi, hey, or whad up world?

#6 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 10 July 2006 - 10:46 PM

Have you setup the php.ini correctly

smtp_port
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#7 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 10 July 2006 - 10:48 PM

I am not familiar with that server but this means that you have not enabled send fake mail in your php.ini
I 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

<?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");	
}
?>

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

<?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>&nbsp;&nbsp;First Name&nbsp;&nbsp;<input type=\"text\"  name=\"first_name\" id=\"first_name2\"></p>
	 <p>&nbsp;&nbsp;Last Name&nbsp;&nbsp;<input type=\"text\"  name=\"last_name\" id=\"last_name\"></p>
	 <p>&nbsp;&nbsp;Your Email&nbsp;&nbsp;<input type=\"text\"  name=\"email\" id=\"email\"></p>
	 <p>&nbsp;&nbsp;&nbsp;&nbsp;Subject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select size=\"1\" name=\"D1\" multiple><option></option><option></option><option></option><option></option><option></option></select></p>
	 <p>&nbsp;&nbsp;<textarea cols=\"38\" rows=\"10\" name=\"body\"></textarea></p>	 
	 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"submit\"  name=\"Submit\" value=\"Send\"></p>
    </form>
  </div>";
include("includes/main.php")
?>

You can edit the structure to fit your page

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users