I am running a PHP script that uses file_get_contents to send a list with what's inside this remote file. If I run the script manually, everything works fine, but when I leave it and wait for the cron to start, it will not receive this deleted content ..... Is this possible? I copy a little code here, where I think the problem is this:
$flyer = file_get_contents('flyer.html'); $desti = $firstname." ".$lastname; $mail = new phpmailer(); $mail->IsSMTP(); $mail->CharSet = 'UTF-8'; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Host = "orion.xxxx.com"; // line to be changed $mail->Port = 465; // line to be changed $mail->Username = ' bob@xxxx.com '; // line to be changed $mail->Password = 'xxxx90'; // line to be changed $mail->FromName = 'Bob'; // line to be changed $mail->From = ' bob@xxxx.com ';// line to be changed $mail->AddAddress($email, $desti); $mail->Subject = 'The Gift Store'; // to be changed if ($cover_form == '1'){ $mail->MsgHTML($long10);} else if ($cover_form == '2'){ $mail->MsgHTML($customer);} else if ($cover_form == '3'){ $mail->MsgHTML($freedoers);} else if ($cover_form == '4'){ $mail->MsgHTML($freelongform);} else if ($cover_form == '5'){ $mail->MsgHTML($freestoreshort);} else if ($cover_form == '6'){ $mail->MsgHTML($getasiteshort);} else if ($cover_form == '7'){ $mail->MsgHTML($flyer);} else {}
source share