hi y'all,
Hope i caught everyone doing alright. I have a small question to ask. I am developing a small site for a client and instead of using the email class with codeigniter I have chosen to use phpmailer for php5 which i found on a previous project hassle free when I used it with google last year. This client is using godaddy's mail service at login.secureserver.net. I entered the smtp details as I should with their service but I seem to be getting 2 bits of information back of which one does not seem to be true. 1. It tells me it sent the mail successfully when it has not and gives me this message:
Severity: Warning Message: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Africa/Brazzaville' for 'WAT/1.0/no DST' instead
Filename: plugins/phpmailer_pi.php
I have included the script i wrote in the controller below:
$this->load->plugin('phpmailer');
$mailer = new phpmailer();
//Establish settings for phpmailer to use to send the mail
$mailer->IsSMTP();
$mailer->IsSendmail();
$mailer->Host = 'smtpout.europe.secureserver.net';
$mailer->Username = '[email protected]';
$mailer->Password = 'wxyz1234';
$mailer->Port = '25';
//Build the actual Email message
$mailer->From = $this->input->post('emailaddress');
$mailer->FromName = $this->input->post('name');
$mailer->Subject = 'Web Site Inquiries';
$mailer->Body = $this->input->post('emailbody');
$mailer->WordWrap = 50;
$mailer->AddAddress('[email protected]','sampleoffice');
$mailer->IsHTML(true);
//Send the mail
if(!$mailer->Send())
{
echo "Not Sent. There was a Problem!";
} else {
echo "Sent successfully!";
}
so what i would like is: a) the date function used in the phpmailer_pi is that what is causing this problem? if so how do I get around this. b) I see sent successfully and still no mail so does the date error affect mail delivery?
Thanks for y'all support. I appreciate it very much
God bless joe