Welcome Guest | Login

Using sendmail in a php script at HostingRails?

In addition to creating new Ruby on Rails apps, I still have some legacy PHP code that's not worth trying to rewrite. One is a form that mails information to an external e-mail address. I've got the code

<?php

$msg = " ";
$to = "me@address.com"; [I've got the real e-mail address in there]
$subject = "Form results";
$email = $_REQUEST['email'];
$mailheaders = "From: $email\r\n".
"cc: myalternate@address.com"; [I've got another real e-mail address in there]
mail($to, $subject, $msg, $mailheaders);

?>

It works fine on my old site, but it's not working here yet. It's been so long since I've set up new PHP. Is there something I'm forgetting?

Thanks! (Moving years worth of legacy code ... ugh....)

2007-09-16 11:25 AM

Borntorun,

To troubleshoot the mailer script. you may need to get in touch with support team to see what is there on the mail server logs.

2007-09-16 12:59 PM

Thank you very much for testing. I don't know what's going on. I'll see if there's some other way to run the search indexer from the command line, and I'll find some replacement for the other script.

It's probably not worth spending too much time dealing with my legacy PHP stuff, since I want to get back to working on my Rails applications!

Moving multiple Web sites to a new server is such a pain. But I'll be glad when I'm all moved in here.

2007-09-19 04:35 PM

Oops, that was supposed to be a response to my other thread, on session issues. Sorry.

2007-09-19 08:30 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!