Jump to content

jalpro

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by jalpro

  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!
  13. Thankyou Byron for your sharp eyes! I just realised that I now have a problem with my MySQL... Error message: Warning: mysql_connect() [function.mysql-connect]: Host 'stevie.heliohost.org' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home1/jalpro/public_html/php/indexnews.php on line 5 Should I start a new topic for this?
  14. The code I'm using is: @font-face { font-family:"AngrC"; src:url("fonts/ANGRC_.ttf"); } #subtitle { font-family:"AngrC", Trebuchet MS, Arial, Helvetica, sans-serif; } It works locally, but not online. I've tried Chrome, FF, Safari and IE9. Refreshed my cache in Chrome. So is this a problem with me or with HelioHost? Thanks
  15. Yes, it's because the account queued page is showing on all accounts. Ahh yes. Not again!! Just read the post here: http://www.helionet.org/index/index.php?showtopic=8606 jje said: "This problem shouldn't occur again when Johnny is up and running." Is there an estimated date in which Johnny will be up and running?
  16. "Encryption: Only use plain FTP (insecure)" worked!! I swear I tried that before!! Oh well, at least it works now! Thanks Btw, your "Wondering where to sign up" link returns a "404 Not Found" error.
  17. Hey again guys! I use FileZilla to upload files for my website. Well I used to anyway! Now, when I try to connect, it pauses on "Command: MLSD", then gives me the following errors: "Connection timed out", "Failed to retrieve directory listings". I can still access and upload my site files through the File Manager on cPanel. These are my current settings: Host: ftp.jalpro.heliohost.org Port: empty (I tried 21, but that didn't work) Protocol: FTP Encryption: Use explicit FTP over TLS if available User: jalpro This is the output when I try to connect: Status: Resolving address of ftp.jalpro.heliohost.org Status: Connecting to 216.218.192.170:21... Status: Connection established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- Response: 220-You are user number 3 of 50 allowed. Response: 220-Local time is now 19:12. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220-IPv6 connections are also welcome on this server. Response: 220 You will be disconnected after 15 minutes of inactivity. Command: AUTH TLS Response: 234 AUTH TLS OK. Status: Initializing TLS... Status: Verifying certificate... Command: USER jalpro Status: TLS/SSL connection established. Response: 331 User jalpro OK. Password required Command: PASS ****** Response: 230-User jalpro has group access to: jalpro Response: 230 OK. Current restricted directory is / Command: SYST Response: 215 UNIX Type: L8 Command: FEAT Response: 211-Extensions supported: Response: EPRT Response: IDLE Response: MDTM Response: SIZE Response: REST STREAM Response: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*; Response: MLSD Response: AUTH TLS Response: PBSZ Response: PROT Response: ESTA Response: PASV Response: EPSV Response: SPSV Response: ESTP Response: 211 End. Command: PBSZ 0 Response: 200 PBSZ=0 Command: PROT P Response: 200 Data protection level set to "private" Status: Connected Status: Retrieving directory listing... Command: CWD /public_html Response: 250 OK. Current directory is /public_html Command: PWD Response: 257 "/public_html" is your current location Command: TYPE I Response: 200 TYPE is now 8-bit binary Command: PASV Response: 227 Entering Passive Mode (216,218,192,170,209,107) Command: MLSD Error: Connection timed out Error: Failed to retrieve directory listing
  18. Yes, HelioHost and it's parked, sub domains etc land in the queued section until it's accepted. It should only take a few days for it to appear, at most. If the problem persists after 2 days and it still shows as in the queue, open a support topic and the HelioHost administrator's will be able to further help you! It's up now! Thanks for your help
  19. Hello James, Choose "Change the nameservers" and in the "Please provide...." part, Just say something like like "Can you please change the nameservers too ns1.heliohost.org & ns2.heliohost.org please. - James" just so they know what nameservers to change them too. The ISP tag should be unavailable on this selection, also. Hope this helped, Jordan. Impatience took over, and I sent the message like you said but with "Repoint the domain" instead. They (Alex) replied a few days later having changed my nameservers anyway, and said to wait 48 hours for it to resolve. After 2 days the domain went down, returning "server not found" errors, so I figure it had worked. I emailed Alex about this and he said I needed to change my domain records on my new host's control panel. So I went into HelioHost's cPanel, into Parked Domains and added my co.uk domain as a new parked domain. Now, when I go to the domain, I get HelioHost's "Heliohost Account Queued" error page. What do I do now? Just wait?
×
×
  • Create New...