Can I get some E-Mail Help?

Can I get some E-Mail Help?

by Corey d'Entremont -
Number of replies: 13
Hi,

First, thanks to thoase who helped me get Moodle up and Installed. I am sooooo excited abouth this! smile

I think I have tried every fix in the fourms concerning e-mail authentication for Moodle. I have read and read but I can't seem to get the sysyem to send e-mail to confirm registrations. sad

I have set up the SMTP server which we have at the school. I have set up Moodle-Cron for Windows on my server. I have put the Moodle installation and the Cron installation on the same server. My SMTP server is called in the variable section of the Moodle installation and in the php.ini file in the Apache folder.

I am running Apache and SQL as services because I have IIS on my server on port 80.

Am I missing something? Please help!! I have pitched Mooodle as a part of our school's technology plan and really want to get this running smoothly!!! I wouldn't want to get a black eye over this!

Corey
Average of ratings: -
In reply to Corey d'Entremont

Re: Can I get some E-Mail Help?

by Corey d'Entremont -
Hi folks,

Still no go on the mail authentication. sad I hope someone can help me.

Corey
In reply to Corey d'Entremont

Re: Can I get some E-Mail Help?

by Corey d'Entremont -
Hi to all,

While my posting is not unique, there are others that have the same problem with no answers forthcoming from moodlers anywhere. So, I would like to ask the group, are there any answers to our SMTP e-mail problems?sad

I have my cron set up (moodle cron for windows). I do not have a port configured for moodle yet. Would that cause me to get the error message that no mail is sent?

Thanks to those who can help me and others in this problem.

Corey
In reply to Corey d'Entremont

Re: Can I get some E-Mail Help?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Have you left the username/password blank?  Does your SMTP host require a username/password?  Are there some error logs on the SMTP server you can look in to see if Moodle is connecting?

Try also turning "debug" on in Moodle variables, and turn "maxeditingtime" down to one minute, and post a lot of test messages in the forums.  Then visit the admin/cron.php page repeatedly using the browser and see what error messages come up.
In reply to Martin Dougiamas

Re: Can I get some E-Mail Help?

by Corey d'Entremont -
Thanks, Martin, I will try those suggestions. I'll let you know shortly.

Corey smile
In reply to Martin Dougiamas

Re: Can I get some E-Mail Help?

by Corey d'Entremont -
Hi Martin,

I did as you said, and I got the following.....


Processing post 2
ERROR:
Error: mod/forum/cron.php: Could not send out mail for id 2 to user 1 (coreyd@stemnet.ca) .. not trying again.
.... mailed to 0 users.
Cron script completed correctly
Execution took 9.426288 seconds


Any suggestions?? thoughtful

Corey
In reply to Corey d'Entremont

Re: Can I get some E-Mail Help?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
You should see more debugging info than that ... try editing lib/moodlelib.php, find the email_to_user() function and add this line
    $mail->SMTPDebug = true;

before this line
    if ($mail->Send()) {
In reply to Martin Dougiamas

Re: Can I get some E-Mail Help?

by Corey d'Entremont -
Hi Martin,
After making the change and sending another e-mail, here's what I now have:
Processing post 4
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 host.bretonsolutions.com ESMTP Sendmail 8.10.2/8.10.2; Thu, 29 Jan 2004 14:29:34 -0330
"
SMTP -> get_lines(): $data is "220 host.bretonsolutions.com ESMTP Sendmail 8.10.2/8.10.2; Thu, 29 Jan 2004 14:29:34 -0330
"
SMTP -> FROM SERVER:
220 host.bretonsolutions.com ESMTP Sendmail 8.10.2/8.10.2; Thu, 29 Jan 2004 14:29:34 -0330
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
"
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $str is "250-8BITMIME
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
"
SMTP -> get_lines(): $str is "250-SIZE 10485760
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
"
SMTP -> get_lines(): $str is "250-DSN
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
"
SMTP -> get_lines(): $str is "250-ONEX
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
"
SMTP -> get_lines(): $str is "250-ETRN
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
250-ETRN
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
250-ETRN
"
SMTP -> get_lines(): $str is "250-XUSR
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
250-ETRN
250-XUSR
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
250-ETRN
250-XUSR
"
SMTP -> get_lines(): $str is "250-AUTH PLAIN CRAM-MD5
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
250-ETRN
250-XUSR
250-AUTH PLAIN CRAM-MD5
"
SMTP -> get_lines(): $data was "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
250-ETRN
250-XUSR
250-AUTH PLAIN CRAM-MD5
"
SMTP -> get_lines(): $str is "250 HELP
"
SMTP -> get_lines(): $data is "250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
250-ETRN
250-XUSR
250-AUTH PLAIN CRAM-MD5
250 HELP
"
SMTP -> FROM SERVER: 
250-host.bretonsolutions.com Hello h198-165-58-38.gtcust.grouptelecom.net [198.165.58.38], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 10485760
250-DSN
250-ONEX
250-ETRN
250-XUSR
250-AUTH PLAIN CRAM-MD5
250 HELP
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "503 5.3.3 AUTH mechanism LOGIN not available
"
SMTP -> get_lines(): $data is "503 5.3.3 AUTH mechanism LOGIN not available
"
SMTP -> ERROR: AUTH not accepted from server: 503 5.3.3 AUTH mechanism LOGIN not available

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.0.0 Reset state
"
SMTP -> get_lines(): $data is "250 2.0.0 Reset state
"
SMTP -> FROM SERVER:
250 2.0.0 Reset state
ERROR: 
Error: mod/forum/cron.php: Could not send out mail for id 4 to user 1 (coreyd@stemnet.ca) .. not trying again.
.... mailed to 0 users.
Cron script completed correctly
Execution took 8.738212 seconds
What do you think?
Corey.
In reply to Corey d'Entremont

Re: Can I get some E-Mail Help?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I think you've got stuff in the smtpuser/smtppass fields and you shouldn't have.

Moodle is talking fine to the SMTP server but can't log in.
In reply to Corey d'Entremont

Re: Can I get some E-Mail Help?

by Corey d'Entremont -
Hi,

It's been a while, but I am still trying to get the SMTP service to send e-mail from Moodle. I have configured a new e-mail address which doesn't need authentication. Here's what I recieved:
Processing post 1
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 mail.stemnet.nf.ca ESMTP Sendmail 8.12.9/8.12.9; Wed, 11 Feb 2004 13:39:14 -0330 (NST)
"
SMTP -> get_lines(): $data is "220 mail.stemnet.nf.ca ESMTP Sendmail 8.12.9/8.12.9; Wed, 11 Feb 2004 13:39:14 -0330 (NST)
"
SMTP -> FROM SERVER:
220 mail.stemnet.nf.ca ESMTP Sendmail 8.12.9/8.12.9; Wed, 11 Feb 2004 13:39:14 -0330 (NST)
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
"
SMTP -> get_lines(): $data is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
"
SMTP -> get_lines(): $data was "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
"
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $data is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $data was "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $str is "250-PIPELINING
"
SMTP -> get_lines(): $data is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
"
SMTP -> get_lines(): $data was "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
"
SMTP -> get_lines(): $str is "250-8BITMIME
"
SMTP -> get_lines(): $data is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
"
SMTP -> get_lines(): $data was "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
"
SMTP -> get_lines(): $str is "250-SIZE 10240000
"
SMTP -> get_lines(): $data is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10240000
"
SMTP -> get_lines(): $data was "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10240000
"
SMTP -> get_lines(): $str is "250-ETRN
"
SMTP -> get_lines(): $data is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10240000
250-ETRN
"
SMTP -> get_lines(): $data was "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10240000
250-ETRN
"
SMTP -> get_lines(): $str is "250-DELIVERBY
"
SMTP -> get_lines(): $data is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10240000
250-ETRN
250-DELIVERBY
"
SMTP -> get_lines(): $data was "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10240000
250-ETRN
250-DELIVERBY
"
SMTP -> get_lines(): $str is "250 HELP
"
SMTP -> get_lines(): $data is "250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10240000
250-ETRN
250-DELIVERBY
250 HELP
"
SMTP -> FROM SERVER:
250-mail.stemnet.nf.ca Hello nova.cite.k12.nf.ca [198.165.58.254] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10240000
250-ETRN
250-DELIVERBY
250 HELP
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.0 ... Sender ok
"
SMTP -> get_lines(): $data is "250 2.1.0 ... Sender ok
"
SMTP -> FROM SERVER:
250 2.1.0 ... Sender ok
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "550 5.7.1 ... Relaying denied. IP name possibly forged [198.165.58.254]
"
SMTP -> get_lines(): $data is "550 5.7.1 ... Relaying denied. IP name possibly forged [198.165.58.254]
"
SMTP -> FROM SERVER:
550 5.7.1 ... Relaying denied. IP name possibly forged [198.165.58.254]
SMTP -> ERROR: RCPT not accepted from server: 550 5.7.1 ... Relaying denied. IP name possibly forged [198.165.58.254]

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.0.0 Reset state
"
SMTP -> get_lines(): $data is "250 2.0.0 Reset state
"
SMTP -> FROM SERVER:
250 2.0.0 Reset state
ERROR: coreyd@stemnet.ca
Error: mod/forum/cron.php: Could not send out mail for id 1 to user 1 (coreyd@stemnet.ca) .. not trying again.
.... mailed to 0 users.
Cron script completed correctly
Execution took 2.269188 seconds

So I tried to take out the SMTP host. This is what I received:

Processing post 2
ERROR:
Error: mod/forum/cron.php: Could not send out mail for id 2 to user 1 (coreyd@stemnet.ca) .. not trying again.
.... mailed to 0 users.
Cron script completed correctly
Execution took 2.770498 seconds

Anyone know what is going on? I really need the help.



sad

Corey
In reply to Corey d'Entremont

Re: Can I get some E-Mail Help?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The key here is "Relaying denied". Your computer is being rejected by the SMTP server.

You need to speak to the admin for that SMTP server to allow you access, or otherwise find another SMTP server that you are allowed to use.

Cheers,
Martin
In reply to Martin Dougiamas

Re: Can I get some E-Mail Help?

by Corey d'Entremont -
Hi All,

Well, after plugging away for so long, I finally have all the aspects of Moodle up and running, including e-mail. big grin

Myself and Keith Murray have been working away trying to install Moodle, CG library and as well configuring Easy PHP 1-7 for Windows NT. We have everything written down, and we are in the process of compiling all that information and post it up here. cool

Thanks to Martin and all those who helped out. I will be in touch. Now I have to inservice my staff on how to use moodle.

Again, Thanks. SOOOOOOOO excited! cool

Corey