Jump to content

josh.php

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

josh.php's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php echo date("l, F d, Y h:i" ,time()); ?>
  2. i ran the basic php date and time code, but we are running interspire website publisher which they said if the basic PHP script for date and time is wrong then it is not their actual website code.
  3. I am having a problem with PHP displaying the correct date and time. It updates as it should, but is fast by 4min and is always displaying a date in 2004. I ran a basic php script to make sure the application im using itself is not wrong. go to lunenburgledger.com/time.php Anybody had any ideas on where to check? The system time on the Windows Server 2003 is correct. The only thing I can think of is that it was converted to a virtual machine on vmware esxi, but the system time stayed right. Any ideas? Thanks!
  4. im having some difficulty running with the pear module now.i get this message PHP has encountered a Stack overflow the code for the page is: <?php include('Mail.php'); $recipients = 'josh.php@gmail.com'; $headers['From'] = 'richard@example.com'; $headers['To'] = 'joe@example.com'; $headers['Subject'] = 'Test message'; $body = 'Test message'; $params['sendmail_path'] = '/usr/lib/sendmail'; // Create the mail object using the Mail::factory method $mail_object =& Mail::factory('sendmail', $params); $mail_object->send($recipients, $headers, $body); ?> i ran go-pear.bat and it installed everthing. i dont know if i copied the mail folder to the right spot though. as of now it is in C:/php/pear/pear/mail/...
  5. that would work but in PHP how do you make it use smtp authentication? you need that enabled to use the SMTP server according to that documentation. Ive already seen that stuff but I dont think you can do it that way with PHP?
  6. well right now i got thunderbird to communicate with the program fine. the program cant send the email for some reason. it finds the mx server or whatever for gmail, where im sending the test, but it keeps looping.
  7. router forwards port 587 to my server. the server software is setup to monitor port 587 and php is setup for localhost with port 587. any ideas? still says loading
  8. i still get this issue. go to joshphp.com the site works fine go to joshphp.com/mail.php it sits there and says waiting. i told php.ini to use smtp.comcast.net with port 587 as that article said and the from email is my comcast email. still same issue? any ideas?
  9. well i do have the personal, but what about using a different port? how could i go about that?
  10. windows server 2003 with PHP Version 5.2.6 and the code is: <?php // ---------------- SEND MAIL FORM ---------------- // send e-mail to ... $to="josh@localhost"; // Your subject $subject="Test"; // From $header="from: your name <your email>"; // Your message $message="Hello \r\n"; $message.="This is test\r\n"; $message.="Test again "; // send email $sentmail = mail($to,$subject,$message,$header); // if your email succesfully sent if($sentmail){ echo "Email Has Been Sent ."; } else { echo "Cannot Send Email "; } ?>
  11. So I have tried so many things to get PHP to send emails with the mail() function. Right now I am using some program called argosoft mail server. has a web interface for getting emails and everything. In my php.ini file, the smtp server is set to localhost, since the program acts as a smtp server. It uses the smtp port 25, and all i get when i go to the page i made to send a test email, is it keeps saying loading and never finishes. Ive tried using my ISP's smtp server, which is Comcast. I still get nothing, even when I use the send from address as my comcast email. Anybody have any insight, or just want to tell me the best way to get it to work. Ill do anything at this point! Thank You!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.