0
你好,我正在從我的服務器發送郵件。郵件從Ubuntu服務器發送爲localhost
如果我直接在服務器上運行它,我會得到一個正確的URL,但是當cronjob被處理時,該URL與本地主機一起使用。 我使用與ssmtp中
在Ubuntu 13.04運行笨框架這是我的編碼:
$yes = site_url('job/itemExtend/?id=' . urlencode($this->encrypt->encode($itemid)));
$no = site_url('job/itemFree/?id=' . urlencode($this->encrypt->encode($itemid)));
我的cronjob:
10 0 * * * php /var/www/TakeAway/index.php job checkTakeAways