Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Comment box that sends me e-mail...

    Hi! I want to create a 'comment box that when users sends a message trough,
    it ends up in my e-mail inbox, together with a unique password (code)
    Is this possible to do with Java? Thanks

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,916
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    With Java, maybe, but not with JavaScript, which is the forum in which you posted this and which has nothing to do with the former one. I’m going to move this to – hm – I suppose PHP is the most apparent choice.

  • #3
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    PHP was a good choice

    What exactly do you want this password to do? Email is simple, using the mail() function with correct validation. The scope of your problem depends entirely on what you want this password to do.

  • #4
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by BluePanther View Post
    PHP was a good choice

    What exactly do you want this password to do? Email is simple, using the mail() function with correct validation. The scope of your problem depends entirely on what you want this password to do.
    I just want the comment box to create a unique code for every single click (send) so that I can seperate the e-mails from eachother

  • #5
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    Still need more information . How are you intending on separating these emails? Are the comments gonna be/being stored in a database with a unique identifier (an ID)?

  • #6
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, but I dont know how

  • #7
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    Is there currently a comment system in place? Do you just need the addition of sending mail?

  • #8
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have no comment system at the moment

  • #9
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    What do you have in place at the moment? Is there SQL based content?

    What exactly do you have at the moment, and how do you want it changed to suit your needs?

  • #10
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    Maybe I've misinterpreted. Are you just wanting an email form? No display of these 'comments' on your website?

  • #11
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, it's my fault. I have no Idea what I'm talking about
    I'm gonna try to explain what I mean
    I need a form of somekind, where the user writes ''something'' and presses ''send'', then I receive an e-mail from the ''user'' with the ''something'' in it.
    And along with the e-mail, I receive a code that's unique for every e-mail I receive from every ''user''

    I don't know if this makes any sense at all, but I hope so

    As you probably understand, I'm quite a newbie with php and databases, but I'm willing to learn

    Thanks for your patience

  • #12
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    something like this if you're looking to learn:
    freecontactform.com/email_form.php which you'll need to add a random number part to the subject, to get the result you desire.

    or if you're simply looking for a ready made script, a simple Google of 'php contact form' will probably provide you with something to suit

  • #13
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Will do that.. Thank you for taking the time to help me out with this
    really appreciate it

  • #14
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    No problem at all If you get stuck with any specifics just post on the forums again and someone (if not me) will help you out


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •