if you have access to windows server.
You can create schedule task.
Accessories->system tools->schedule task
create new task
When it ask for application.
1) browse to php folder and select php.exe
2) then give space and give full path of report1.php
3) set time
repeat 1-3 steps for other reports.
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
I am not sure about the ADD CC Function. Because I directly send mail, means I do not use class.
Now about automation of mail
So I explained in my post that on widows server, You can add scedule task.
Search microsoft site for details.
Cron are genrally utility for linux server cron (linux), schedule task (windows).
Cron commands will not work on windows.
Now you use file search facility of windows. in xamapp folder there might be php folder where you can find php.exe, locate php exe in your computer, I am sure you will find it.
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
For cc on your own you may try
$mail->addCustomHeader("Cc: {$yourccmailid1},{$yourccmailid2}");
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
give whole path of your script
php c:\mywebroot\myfolder\myreport\report1.php
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
Kindly try on phpmailer forum, I am not sure about the error.
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
you continue with
php only, do not give any parameter,
then completing creating task, right cick on it and open properties
you will find RUN BOX "C:\Program Files\PHP\php.exe"
CHANGE IT TO (give appropriate path)
"C:\Program Files\PHP\php.exe" "C:\WEBROOT\YOURFOLDER\YOURREPORT\report1.php"
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
Question Answered as of 2 Years Ago by
urtrivedi