Messaging: Error Using Messaging on 1.5

Messaging: Error Using Messaging on 1.5

by Donnie Carpenter -
Number of replies: 7

I get the following message on a particular student when I attempt to send a message to him:

Warning: fsockopen() [function.fsockopen]: unable to connect to mail.templejc.edu:25 (An established connection was aborted by the software in your host machine. ) in c:\Inetpub\wwwroot\moodle\lib\phpmailer\class.smtp.php on line 105
ERROR: SMTP Error: Could not connect to SMTP host.

Any ideas?

Average of ratings: -
In reply to Donnie Carpenter

Re: Messaging: Error Using Messaging on 1.5

by Martin Dougiamas -
Bildo de Core developers Bildo de Documentation writers Bildo de Moodle HQ Bildo de Particularly helpful Moodlers Bildo de Plugin developers Bildo de Testers
Your SMTP server is having problems ... to hide these errors (without fixing the notification-by-email) you should turn debugging off in the moodle admin variables page.
In reply to Martin Dougiamas

Re: Messaging: Error Using Messaging on 1.5

by Donnie Carpenter -

Debug is set to no:

Miscellaneous

maxeditingtime: 60 minutes 45 minutes 30 minutes 15 minutes 5 minutes 1 minutes
 This specifies the amount of time people have to re-edit forum postings, journal feedback etc. Usually 30 minutes is a good value.
debug: No Yes
 If you turn this on, then PHP's error_reporting will be increased so that more warnings are printed. This is only
In reply to Martin Dougiamas

Re: Messaging: Error Using Messaging on 1.5

by John Papaioannou -
Yep, debug off hides only notices, not warnings.
In reply to John Papaioannou

Re: Messaging: Error Using Messaging on 1.5

by Donnie Carpenter -

This problem seems to happen every time with a particular student and it has been reported as happening at least once with another.

In reply to Donnie Carpenter

Re: Messaging: Error Using Messaging on 1.5

by Martin Dougiamas -
Bildo de Core developers Bildo de Documentation writers Bildo de Moodle HQ Bildo de Particularly helpful Moodlers Bildo de Plugin developers Bildo de Testers
The student has set Messaging preferences to send them an email copy if they aren't online.  Moodle is trying to send the mail via your SMTP server, but the SMTP server is giving an error so that mail is not sent.

Have you contacted whoever runs your SMTP server to look into it?
In reply to Martin Dougiamas

Re: Messaging: Error Using Messaging on 1.5

by Donnie Carpenter -
smtphosts:
 Give the full name of one or more local SMTP servers that Moodle should use to send mail (eg 'mail.a.com' or 'mail.a.com;mail.b.com'). If you leave it blank, Moodle will use the PHP default method of sending mail.
smtpuser:
 If you have specified an SMTP server above, and the server requires authentication, then enter the username and password here.
smtppass:

Above is how I have my settings in config.. also have same settings in my "test" account and dont seem to have the error in test.. My server guy is looking into.  Thanks.