Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #966

    Help needed I always have a problem with mail ?

    Would some one be kind enough to point me in the right direction

    on what needs to be changed to make it work

    Thank you in advance Coolj

    This is the code now without any adjustment

    <p class=”<?php if (isset($the_nameclass)) echo $the_nameclass; ?>” ><input name=”yourname” class=”text_input empty” type=”text” id=”name” size=”20″ value='<?php if (isset($the_name)) echo $the_name?>’/><label for=”name”>Your Name*</label>

    </p>

    <p class=”<?php if (isset($the_emailclass)) echo $the_emailclass; ?>” ><input name=”email” class=”text_input email” type=”text” id=”email” size=”20″ value='<?php if (isset($the_email)) echo $the_email ?>’ /><label for=”email”>E-Mail*</label></p>

    <p><input name=”website” class=”text_input” type=”text” id=”website” size=”20″ value=”<?php if (isset($the_website)) echo $the_website?>”/><label for=”website”>Website</label></p>

    <label for=”message” class=”blocklabel”>Your Message*</label>

    <p class=”<?php if (isset($the_messageclass)) echo $the_messageclass; ?>”><textarea name=”message” class=”text_area empty” cols=”40″ rows=”7″ id=”message” ><?php if (isset($the_message)) echo $the_message ?></textarea></p>

    <p>

    <input type=”hidden” id=” (Email address hidden if logged out) ” name=” (Email address hidden if logged out) ” value=”<?php echo $email_adress_reciever; ?>” />

    <input type=”hidden” id=” (Email address hidden if logged out) ” name=” (Email address hidden if logged out) ” value=”<?php echo $name_of_your_site; ?>” />

    <input name=”Send” type=”submit” value=”Send” class=”button” id=”send” size=”16″/></p>

    <?php } else { ?>

    <p><h3>Your message has been sent!</h3> Thank you!</p>

    <?php } ?>

    </fieldset>

    </form>

    #33495

    Hey,

    Can you receive WP notifications? Try resetting your password – do you get the email?

    If not, you’ll need the WP SMTP Mail plugin or talk to your host :)

    James

    #33496

    Thanks James

    My theme is Html not WP

    so I guess it is a matter of getting it to post to the right

    recipient

    server

    etc

    not able to get it right yet

    I used this code from an old web site it seems to work

    <form action=”http://www.magentotest.net/cgi-sys/formmail.pl” method=”post”>

    <input type=”hidden” name=”recipient” value=” (Email address hidden if logged out) “>

    <input type=”hidden” name=”subject” value=”FormMail E-Mail”>

    The only thing is how can you hide the code so the spamers cant get to you?

    Thanks again

    Gary

    #33497

    Hey,

    You can’t hide the email address from a form which includes it as a hidden value. You could move it to the formal.pl code (I’m not a Perl coder so can’t help :( ) or perhaps use it as a variable which relies on a hidden field?

    James

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Contact Form Code’ is closed to new replies.