Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Mail Server

  • Please log in to reply
2 replies to this topic

#1 p18


  • Members
  • 2 posts
  • Local time:10:53 AM

Posted 02 March 2007 - 02:14 AM

Hi all,

I'm trying to learn how to make dynamic websites and in a tutorial which I'm following, it requires me to set up some kind of mail server (??). Unfortunately, the tutorial left out how to do this.

I'm trying to make a web form and once I've filled this web form out, and pressed the submit button, an email would be sent to my email client. Ok, I understand that I need a mail server to do this but what do I need to do this and how do I configure my computer to do this?

I'm running WinXP, wampserver (this includes apache and mysql ... if this is helpful..dunno) so I have turned off IIS web server. I know that IIS has a SMTP server but I don't know if I can use this (because I've turned of the IIS web server). Does this mean I need to install an external mail server?

If anyone could help, I would be very grateful. So far I have more questions than answers....

BC AdBot (Login to Remove)


#2 peterjwfrench


  • Members
  • 84 posts
  • Gender:Male
  • Location:Warrington, Cheshire
  • Local time:02:53 AM

Posted 02 March 2007 - 07:58 AM

first of all do you need the form to be secure or unsercure and do you have an option to use cgi-bin ? A form would be here is an example of a form this form is an uinsecure form so any details send can be read. there is another way of encrypiting the forms but here is one to get your form working first

<FORM name="form" method="post" action="mailto:you@yourprovider.com?subject=Message"
<INPUT type=hidden name="Message">

<INPUT type="text" size=25 name="name" onChange="msg()">

<INPUT type="text" size=25 name="phone" onChange="msg()">

<INPUT type="text" size=25 name="email" onChange="msg()">

<INPUT type="text" size=25 name="subject" onChange="msg()">

<TEXTAREA rows=5 cols=45 wrap="auto" name=message onChange="msg()"></TEXTAREA>

<INPUT type=submit value="Send Message" onClick="msg()">

Edited by peterjwfrench, 02 March 2007 - 07:59 AM.

#3 groovicus


  • Security Colleague
  • 9,963 posts
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:53 PM

Posted 02 March 2007 - 11:48 AM

The code provided by peterjwfrench will work, with the added bonus that since you do not yet know anything about mail servers, you will not be inadvertently opening a spam relay (which can cause you to lose your account).

Besides, there is no need whatsoever to set up a mail server just to create dynamic websites, anymore than I need to wear sunglasses and driving gloves to take my car to the market.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users