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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need some help with a contact form...

    Hello! so I recently got a website template online to help build my portfolio, and so far its great,e xcept for the contact page! I can't seem to figure out the code to make it actually send me emails when people use the contact form.

    here's the code for the form itself that I pulled out of the html page.

    Code:
    				<form id="contact-form" action="http://mojothemes.cosmo-coder.com/dual-flow/Dark/process-contact.php" method="post" novalidate="novalidate">
    					<label for="name">Name <span>(required)</span></label>
    					<input type="text" name="name" id="name" class="form-input" autofocus pattern="[a-zA-Z ]{3,}" maxlength="30" required="required" title="Only letters allowed and between 3-30 characters" />
    					
    					<label for="email">Email <span>(required)</span></label>
    					<input type="email" name="email" id="email" class="form-input" required="required" />
    					
    					<label for="subject">Subject <span>(optional)</span></label>
    					<input type="text" name="subject" id="subject" class="form-input" />
    					
    					<!-- This field is for spam protection -->
    					<label class="antispam" for="antispam">Don't fill up this field</label>
    					<input type="text" name="antispam" class="antispam" />
    					
    					<label for="message">Message <span>(required)</span></label>
    					<textarea name="message" id="message" class="form-input" data-minlength="4" required="required"></textarea>
    					
    					<input class="form-btn" type="submit" value="Send Message" />
    					
    					<p id="loading">Please Wait ...</p>
    				</form>
    Any idea what I need to do to make it actually send stuff to me? any and all help is appreciated!

  • #2
    New Coder
    Join Date
    Jul 2009
    Posts
    28
    Thanks
    2
    Thanked 3 Times in 3 Posts
    We'll need to see the PHP in your process-comment script.

  • #3
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sadly that I think that's the problem... I searched the entirety of the template resources and that script is simply...not there

  • #4
    New Coder
    Join Date
    Jul 2009
    Posts
    28
    Thanks
    2
    Thanked 3 Times in 3 Posts
    That's odd. Well, that PHP file does the bulk of the work when it comes to sending email. I'd search around for a ready-made plugin that can send form submissions to your email.

    A popular library is SwiftMailer, but that requires some PHP coding to use.


  •  

    Posting Permissions

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