close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Questions re scheduled emails

Thread began 1/22/2015 7:40 am by MagsW | Last modified 1/22/2015 3:10 pm by MagsW | 514 views | 5 replies

MagsW

Questions re scheduled emails

I've set up an email form with a trigger of 'before page load' and have also set up a Cron job on our server to run the page once a day in order to send emails to selected records in the database. It all works fine, but I'm getting an error message and I also have a question about security.

Q1: I'm getting a system-generated email when the script runs which says:

PHP Notice: Undefined variable: mailContent in
/var/www/vhosts/(mydomainname)/httpdocs/webassist/email/mail_php.php on line 111 PHP Warning: 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 'UTC' for 'GMT/0.0/no DST' instead in
/var/www/vhosts/(mydomainname)/httpdocs/webassist/email/mail_php.php on line 189 ?>

Line 111 of that file is: $htmlEmail = $mailBody;$_SESSION[$mailRef."_Body"] = $mailContent;

Line 189 of that file is: $mailHeader .= "Date: ". date('r (T)').$lineEnd;

What changes can I make to the mail_php.php file to stop this error?

Q2: I originally had the email page protected by SecurityAssist - however it seems the server can't access it because of this. It only works if I remove the protection. Wouldn't this be a security issue though as anyone could access and run the script?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...