...

View Full Version : Fake Mail Server



katman
01-12-2012, 07:06 AM
I am trying to find a way to create a fictitious email server for just fun. It is just for play purposes so it does not need to be fully functional. I just need it to be able to act like you recieve emails (can be an email that I type or automatically generated at a set time) and act like you can send them. This doesn't necessarily have to be Internet-based or web page based. It could be an exe file, but the only programming language I know is JavaScript and even at that I am have not completely mastered it yet. Can anyone help me?

djh101
01-17-2012, 09:21 AM
Well if the email doesn't have to go anywhere, you could just make the email form go away and have a message appear saying that your message was send afterwards.

function mailSend(){
document.getElementById('mailForm').style.display="none";
alert("Message sent!");
}

katman
01-17-2012, 05:30 PM
Thank you, djh101, I appreciate the help. Now is there also a way that I could fake incoming emails?

mlseim
01-17-2012, 05:39 PM
Can we ask what the purpose is?
Maybe there's a really good way "thinking outside of the box".

I'm thinking of something like Picus. An embedded WIFI web server.
http://www.openpicus.com/

You basically can browse it, connect to outside physical devices, and
it can respond back to a browser. Sort of like having your own mini server.
And it's WIFI, so any PC, laptop, iPad, smart phone can access it.

alykins
01-17-2012, 06:26 PM
if you want to go outside javascript a server is just a place that data gets stored- email servers included- you can create a simple page that has a body portion that you type into and then click "send" and it saves a .txt file on your computer- then you could also have it check to see if files exist ("send/receive" button) where it looks for .txt files in that path and displays them back- there are a lot of ways to emulate- I guess what I am driving @ is similar to mlseim asked- what is the purpose?

djh101
01-17-2012, 08:00 PM
function mailReceive(){
//DISPLAY THE DIV THAT SAYS YOUVE GOT MAIL
document.getElementById('receiveMail').style.display = "block";
//ADD THE CONTENTS OF YOUR MESSAGE TO THE MESSAGE DIV
document.getElementById('message').innerHTML = "Your message here.";
}
function mailOpen(){
//HIDE THE YOUVE GOT MAILD DIV
document.getElementById('receiveMail').style.display = "none";
//DISPLAY THE OPEN MESSAGE DIV
document.getElementById('viewMail').style.display = "block";
return false;
}
function mailClose(){
//HIDE MESSAGE DIV
document.getElementById('viewMail').style.display = "NONE";
//SET TIMER TO DISPLAY A NEW MESSAGE AT A RANDOM TIME BETWEEN 2 AND 5 MINUTES
setTimeout(mailReceive,( 1000*60*2+Math.floor(Math.random()*1000*60*3) ));
return false;
}
setTimeout(mailReceive,( 1000*60*2+Math.floor(Math.random()*1000*60*3) ));

...

<div id="receiveMail" style="display: none;">
<a href="" onclick="return mailOpen();">You've got mail!</a>
</div>

<div id="viewMail" style="display: none;">
<div id="message"></div>
<a href="" onclick="mailClose();">Delete Message</a>
</div>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum