[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: 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 'America/Los_Angeles' for 'PDT/-7.0/DST' instead
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: getdate(): 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 'America/Los_Angeles' for 'PDT/-7.0/DST' instead
Wondershare User Community and Support Forum • View topic - mail.php question
Presentations, Demonstrations, Illustrations, Same Ideas Showed in Active Ways!

mail.php question

Please post anything related QuizCreator here, including feature request.

mail.php question

Postby tommy » Sun Oct 19, 2008 6:29 pm

I would like to configure Quizcreator to send and receive test results through my gmail account instead of wondershare's account. Is this possible. Here's what I've entered into the mail.php file:

$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "smtp.gmail.com"; // specify main and backup server
$mail->Port = 465; // specify smtp port
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "myAccount@gmail.com"; // SMTP username
$mail->Password = "myPassword"; // SMTP password

//get mail's data
$to = trim($_POST["mail"]);
$subject = trim($_POST["topic"]);
$body = trim($_POST["body"]);
$from = trim($_POST["from"]) == "" ? "myAccount@gmail.com" : $_POST["from"];
$sender = "myAccount@gmail.com";


With the settings above, after completing the quiz, there are no emails sent (to either the quiz taker or me).

I don't know if it matters, but I've got the quiz and php files on a hostmonster site.

Any help would be appreciated.
tommy
 
Posts: 2
Joined: Sun Oct 19, 2008 6:19 pm

Postby yangcai_ws » Mon Oct 20, 2008 3:56 am

Dear tommy,

Regarding your problem, if you wan to use your own server to send and receive the results, you can go to our help document for more detailed information.

Click "Help" button in the upper right of the program's main interface, go to Collecting Quiz Results--->Using Web database---->Using PHP.

Hope it helps.

Thanks

Regards

Shirley
Quiz Generator Team
yangcai_ws
 
Posts: 171
Joined: Tue Aug 05, 2008 8:42 am

Having the same problem

Postby RkyMtnEng » Sat Mar 14, 2009 2:55 pm

Hi -

I'm having the same problem that the poster above was having. I can send emails find through the sameshow.com server, but when I try to change it to use my gmail account (My changes look exactly like the previous poster's) I don't receive any emails.

I've read the help section you refer to, but am still at a loss. Do you have any suggestions? Also do you have any suggestions on how to debug this? I can't see any echo messages I place in the mail.php file, and when I place a die line in the php file, I simply get back an undefined message when I try to email the quiz results. If there was some debugging mechanism that would help as well.

Please let me know if I can provide any more details. Thanks.
RkyMtnEng
 
Posts: 1
Joined: Sat Mar 14, 2009 2:48 pm

Postby admin » Sun Mar 15, 2009 11:10 pm

To All Users here:

Regarding the mail delivery option, commonly speaking, we advise the users to use sameshow server to post the email, as it is more stable and works well.

Also, some users want to use their own mail account, you need to have your own server, and then you can place the files class.phpmailer.php, class.smtp.php and mail.php under your server.

But we have to say that there might be some unexpected issue, that is why we recommend you to use our sameshow server.

Hope the info helps.

Thanks

Regards

Shirley Yang
Quiz Generator Team
admin
 
Posts: 947
Joined: Sun Feb 19, 2006 7:22 pm

crossdomain.xml

Postby awei » Thu Mar 19, 2009 10:42 am

Hi, guys! First of all, crossdomain.xml must be uploaded to server with the same directory of mail.php, and it is good if you put it in the www-root of your site.
Good lucky!
awei
 
Posts: 1
Joined: Tue Feb 17, 2009 9:17 pm


Return to QuizCreator

Who is online

Users browsing this forum: No registered users and 0 guests

cron