Welcome Guest, Not a member yet? Register   Sign In
Automatic mail sending
#14

[eluser]Roy MJ[/eluser]
Ok here is what i am getting from mailer demon

/bin/sh: php/home/aromaren/public_html/cron.php: No such file or directory

My cron.php looks looks like this:

Code:
<?php
define('BASEPATH',1);
require('../system/application/config/database.php');
require('../system/application/config/config.php');
/*$con = mysql_connect($db['default']['hostname'],$db['default']['username'],$db['default']['password']);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db($db['default']['database'], $con);

$functiontype = $_GET['functiontype'];
$id     =     $_GET['id'];
switch($functiontype){
    case 'cars_id' : list_cars($id);
                        break;

}
mysql_close();*/
                $recipient = "[email protected]"; // Who the email is too
                $subject = "aroma";
                $message ="helooooooo";
                    $frm_name = "bigiil";
                    $email "[email protected]";
                    $mailheader = "From: $frm_name\r\n";
                    $mailheader .= "Reply-To: $email\r\n";
                    $mailheader .= "MIME-Version: 1.0\r\n";
                    mail($recipient, $subject, $message, $mailheader)
?>


The command i gave in the cpanel is : php/home/aromaren/public_html/cron.php


The error says there is no file or directory ..Can you see what i am doing wrong?


Messages In This Thread
Automatic mail sending - by El Forum - 01-12-2011, 02:45 AM
Automatic mail sending - by El Forum - 01-12-2011, 04:06 AM
Automatic mail sending - by El Forum - 01-12-2011, 04:27 AM
Automatic mail sending - by El Forum - 01-14-2011, 03:27 AM
Automatic mail sending - by El Forum - 01-14-2011, 03:32 AM
Automatic mail sending - by El Forum - 01-14-2011, 03:34 AM
Automatic mail sending - by El Forum - 01-14-2011, 03:37 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:04 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:10 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:18 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:20 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:20 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:25 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:39 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:43 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:45 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:48 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:48 AM
Automatic mail sending - by El Forum - 01-14-2011, 04:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB