Jump to content

jalpro

Members
  • Posts

    41
  • Joined

  • Last visited

About jalpro

  • Birthday 03/03/1992

Contact Methods

  • Website URL
    http://jalproductions.co.uk/

Profile Information

  • Gender
    Male
  • Location
    Kent, UK

jalpro's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I put in those headers. But for some reason, the email doesn't sent with headers. It works fine if it's just: mail($to, $subject, $body);
  2. Is there a proper way to write the From and Reply-to headers for an email? The email from my form is coming through as "postmaster@domain.com" rather than the email I used in the headers. This is the code I was using before: $headers = "From: $email\r\n"; $headers .= "Reply-to: $email"; Then I Googled it and saw a post that said it had to be in the ' "Name" <email> ' format. I changed my code to the following, ignoring Reply-to for the time being: $headers = "From: \"".$contactname."\" <".$contactemail.">\n"; But that code didn't work either. Any ideas? Thanks
  3. Thanks! I messaged the host and they're changing my server from Windows to Linux. Hopefully this will work! For future reference, does php mail() only work on Linux servers? Or is it just the way that this host has set up their Windows server?
  4. Core PHP Version: 5.3.5 mail.add_x_header: On On mail.force_extra_parameters: no value no value mail.log: no value no value sendmail_from: no value no value sendmail_path: no value no value Standard Internal Sendmail Support for Windows: enabled Not sure what I'm looking for? Just Ctrl+F'd "mail". Does the above mean anything to you? Or do you need something else? Thanks!
  5. Made the php file. Put in my email (within the apostrophes). Uploaded. Directed my browser to the page. Doesn't work. No email. Tried a different email on a different host. Didn't work either. Both emails I tried aren't hosted by the same host where the files are hosted btw. But that shouldn't matter... right? I'll try it with an email from that host, and check tomorrow if it went through.
  6. Okay. So you say the PHP looks fine. Can anyone verify the HTML? Thanks Oh and the HTML W3C validates except for 4 duplicate IDs that I have yet to fix. But they shouldn't be causing the problem, should they?
  7. No it's not. Was hoping I could get some help here though. Is that allowed?
  8. Sorry, I should have mentioned that this code isn't being used for the site in my sig. Nothing in my spam folder though.
  9. Hey! I have a php mail() function that just refuses to send! I was wondering if someone here could check my code or suggest anything that might be preventing this from working. HTML / jQUERY / AJAX: <div id="contactformcontainer"> <form method="post" id="contactform"> <table> <tr> <td><label>Name</label></td> <td><input class="formbox" type="text" name="contactname" id="contactname"/></td> </tr> <tr> <td><label>Email</label></td> <td><input class="formbox" type="email" name="contactemail" id="contactemail"/></td> </tr> <tr> <td><label>Subject</label></td> <td><input class="formbox" type="text" name="contactsubject" id="contactsubject"/></td> </tr> <tr> <td><label>Message</label></td> <td><textarea class="formbox" name="contactmessage" id="contactmessage"></textarea></td> </tr> <tr> <td><label>Anti-spam</label></td> <td> <script> $(document).ready( function() { var randNumber1 = Math.floor(Math.random()*10) var randNumber2 = Math.floor(Math.random()*10) sumNumbers = randNumber1 + randNumber2; $('#randomNumbers').html(randNumber1 + ' + ' + randNumber2 + ' = '); }); </script> <span id="randomNumbers"></span> <input class="formbox" type="text" name="contactantispam" id="contactantispam"/> </td> </tr> <tr> <td></td> <td><input name="contactsubmit" id="contactsubmit" value="Send"/></td> </tr> </table> </form> <div id="success"><p>Thank you. Your message was successfully delivered.</p></div> <div id="empty"><p>Please ensure all fields are filled out correctly.</p></div> </div> <script> $('#contactsubmit').click(function() { var emailformat = /^([A-Za-z0-9_\+\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; if( $('#contactname').attr('value') !== '' && emailformat.test( $('#contactemail').attr('value') ) && $('#contactsubject').attr('value') !== '' && $('#contactmessage').attr('value') !== '' && $('#contactantispam').attr('value') == sumNumbers ) { var contactname = $('#contactname').attr('value'); var contactemail = $('#contactemail').attr('value'); var contactsubject = $('#contactsubject').attr('value'); var contactmessage = $('#contactmessage').attr('value'); var datastring = "contactname=" + contactname + "&contactemail=" + contactemail + "&contactsubject=" + contactsubject + "&contactmessage=" + contactmessage; //alert(datastring); $('#empty').hide(); $('#contactsubmit').hide(); $.ajax({ type: "POST", url: "php/contactform.php", data: datastring, success: function(){ alert("success!"); $('#success').fadeIn(); } }); return false; } else { alert("empty"); $('#empty').fadeIn(); } }); </script> PHP: <?php $to = "james@jalproductions.co.uk"; $contactname = $_REQUEST["contactname"]; $contactemail = $_REQUEST["contactemail"]; $subject = $_REQUEST["contactsubject"]; $contactmessage = $_REQUEST["contactmessage"]; $headers = "From: $contactemail\r\n"; $headers .= "Reply-to: $contactemail"; $body = "Name: $contactname\nEmail: $contactemail\nMessage:\n$contactmessage"; mail($to, $subject, $body, $headers); echo "$to"; echo "$subject"; echo "$body"; echo "$headers"; ?> Using alerts and echos, it seems that the data is being sent to the php code perfectly fine. The echos in the php code print out exactly what was entered into the form. I tried removing the jQUERY/AJAX and adding an action="" to the form tag so that it just runs the php on its own, but this still doesn't work! Help! Thanks! EDIT: I'm not using this code on a HelioHost hosted site.
  10. jalpro

    Stevie Queued

    Same for me too. Cleared my cache. Site is still down. http://www.jalproductions.co.uk/
  11. Yeah I made another one recently too. It says 1 year on the home page but the confirmation page said 2 years! Also, you go through Yola instead of MyPortalExpress now to set up domain stuff like name servers.
  12. 1. jalpro 2. jalpro.heliohost.org 3. Stevie 4. 3 http://www.heliohost.org/scripts/renew.php This returns the following error: We're sorry, but we either could not find that account in the database, or it is not listed as inactive. Please contact an administrator if you feel this message is in error. Signing in on the homepage returns: Login Attempt Failed!
×
×
  • Create New...