Has Anyone ever made a mail form?

Discussion in 'OT Technology' started by morgue, Jul 15, 2005.

  1. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
    I need a mail form for a website but I don't know what I need.. I was hoping anyone could recommend me or lead me so I can do it.
    I'm a newbie but I can write a little code and I'm beginning on .net. I don't really care what language it is on but I kind of need to make a page that works for sending emails to a defined email address.

    Thx
     
  2. RyanL

    RyanL OT Supporter

    Joined:
    Nov 30, 2004
    Messages:
    4,584
    Likes Received:
    0
    Location:
    St. Paul, MN
    if php will work there is this:

    http://cgi-central.net/scripts/aformmail/

    I've used this in the past for a quick simple emailer. It works best for forms with a lot of feilds in them.

    All you really need to is set up a html page with a form pointing to it. It takes care of making sure the required feilds are there and that email addresses are valid.
     
  3. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    formmail is always criticized for security vulnerabilities. dunno that I'd use that. All my mail servers require SMTP authentication, so I just wrote a PHP script that connects via sockets.
     
  4. m2e

    m2e OT Supporter

    Joined:
    Aug 9, 2004
    Messages:
    48,120
    Likes Received:
    55
    Location:
    US
  5. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Isn't that assuming that you are relaying the message?
     
  6. barnold999

    barnold999 New Member

    Joined:
    Jul 8, 2003
    Messages:
    243
    Likes Received:
    0
    Location:
    TX
    I bet the data isnt that crucial.

    But a PHP script would be the easiest... with even learning a little PHP you could do it from scratch.
     
  7. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
    what do I need on my host in order to use aformail.php?
     
  8. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    nope... They wont even take local delivery without authentication :cool:
     
  9. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Which would prevent anyone from emailing you from outside of the registered domains, ips, etc.
     
  10. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    why would I want someone's email from an address that wasn't valid?
     
  11. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Well, it would be pretty hard for people who weren't on your safe list to email you. In other words, I wouldn't be able to send you a message if you enforced smtp authentication.
     
  12. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    that is incorrect. SMTP authentication means you cannot use my mail server to send mail... However, you can send mail using YOUR mail server (or your ISPs mail server) to my server.... that's a whole different beast.
     
  13. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,923
    Likes Received:
    11
    Location:
    Los Angeles
    That's most definatly way too complicated for this guy. Or so he claims.

    His best bet would probably writing a few fields in HTML and using the mail( :ugh: ) function to send the data.

    And that is really easy to do. morgue, look up the mail() in the PHP documentation.

    The server you are doing this one will need to have SMTP services with an account configured with SMTP to send the mail.
     
  14. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    That's funny, because when I turned on SMTP authentication on my mail server, I stopped getting email. As far as I can tell, the only reason to turn it on is if you didn't want people outside of your company sending emails directly to your employees.

    Relaying is a completely different story though, that's what most people prevent (using someone's smtp server to send a message to someone outside of the safe list).
     
  15. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    Without SMTP authentication, any user could send mail to a local mailbox -- which I do not want. You must authenticate via an SMTP socket before you can send an email to anyone.
     
  16. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    If all it's doing is serving for a webserver, I can see the benefit of doing that.
     
  17. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    yes, if you host websites for profit, then security is a BIG deal. And I hate spam.. Why allow the mail() script (untraceable)??? If they want to send mail, they must authenticate, and everything is logged. You spam on my box and I will find you -- and you get my size 13 boot up your ass :cool:
     
  18. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
    is there any free php server where I can try this out?
     
  19. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    www.php.net... download it, and use it on your own desktop.
     
  20. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
    It says on the documentation that I need a web server... Which one you guys recommend I should use, they name lots in there but I thought I'd ask here first... There are even some packages and stuff which include web server... php... and a lot of things that I'm provably not going to use right now so...
    I'm running Windows XP btw
     
  21. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    you do not need a webserver for what you're doing... run it on the command line.
     
  22. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
    It's kind of odd but I tried both and none worked... They sayd the emails were sent but I didn't get anything on my hotmail/gmail/yahoo inbox.
    Is it 'cause I'm using //localhost?
     
  23. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
  24. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    If you are using your home ISP, port 25 traffic may be blocked
     
  25. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    a good SMTP server will reject mail without a valid PTR, as well.
     

Share This Page