Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to send an Email from Moodle
    primarykey
    data
    text
    <p>I have been on this for about 26 hours now, and unable to send an email form my Moodle server to a self registered User Account.</p> <p>I have tried:</p> <ul> <li>Configuring SMTP Server for Gmail using smtp.gmail.com using Port 25/465/587 and SSL/TLS/No Security</li> <li>Configuring SMTP Server for Yahoo Mail</li> <li>Configuring class.phpmailer.php and class.smtp.php</li> </ul> <p>But Moodle just refuses to send an Email.</p> <p>Here is the error log message in Apache server:</p> <blockquote> <p>[Tue Jul 16 13:08:21 2013] [error] [client ip] Default exception handler: Unsupported redirect detected, script execution terminated Debug: \r\nError code: redirecterrordetected\n* line 2443 of \lib\weblib.php: moodle_exception thrown\n* line 2940 of \lib\moodlelib.php: call to redirect()\n* line 34 of \repository\draftfiles_ajax.php: call to require_login()\n, referer:edit.php</p> <p>[Tue Jul 16 13:08:22 2013] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Moodle/server/moodle/moodle</p> </blockquote> <p>Also on hitting the 'Update Profile' button, a blank screen with a comment '<strong>could not send email!</strong>' is displayed. On checking for edit.php, I found the following code:</p> <pre><code>if ($email_changed &amp;&amp; $CFG-&gt;emailchangeconfirmation) { $temp_user = fullclone($user); $temp_user-&gt;email = $usernew-&gt;preference_newemail; $a = new stdClass(); $a-&gt;url = $CFG-&gt;wwwroot . '/user/emailupdate.php?key=' . $usernew- &gt;preference_newemailkey . '&amp;id=' . $user-&gt;id; $a-&gt;site = format_string($SITE-&gt;fullname, true, array('context' =&gt; context_course::instance(SITEID))); $a-&gt;fullname = fullname($user, true); $emailupdatemessage = get_string('emailupdatemessage', 'auth', $a); $emailupdatetitle = get_string('emailupdatetitle', 'auth', $a); //email confirmation directly rather than using messaging so they will definitely get an email $supportuser = generate_email_supportuser(); if (!$mail_results = email_to_user($temp_user, $supportuser, $emailupdatetitle, $emailupdatemessage)) { die("could not send email!"); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload