ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


unable to send mail


  • 2006-02-03 08:04:28

    unable to send mail

    hi,
    my system is unable to send mails (e.g. course start confirmation). there is an error message "unable to send mail" (it is german, because i use a localized version).

    but: in other php applications i can send mails.

    can someone help?

    gabriel

  • 2006-02-03 08:25:45

    Re: unable to send mail

    You haven't told us anything about the system ATutor is running on.

  • 2006-02-04 13:56:00

    Re: unable to send mail

    does this help:

    Linux 2.6.14-1.1637_FC4smp #1 SMP Wed Nov 9 18:34:11 EST 2005 i686

    Apache/2.0.54 (Fedora)
    Apache API Version 20020903

    PHP API 20031224
    PHP Extension 20041030
    Zend Extension 220040412

    mime_magic support enabled

    MySQL
    Client API version 4.1.14

  • 2006-02-04 15:26:00

    Re: unable to send mail

    You likely need to install, or configure Sendmail.

  • 2006-02-05 06:36:56

    Re: unable to send mail

    this is php webspace with a provider. i guess sendmail is already installt - since i can user the mail() function in my own php programs.

    does atutor NOT use the regular mail() function?

  • 2006-02-06 05:53:54

    Re: unable to send mail

    I now understand, that Atutor does not use php mail(), even if the underlying class would support that. (BTW: why???)

    Can I change the
    atutormailer.class.php
    file so that PHP Mail is used?

    Can someone help me to use
    IsMail()
    instead of
    IsSMTP()?

    I guess somewhere here:
    [code]

    function ATutorMailer() {
    if (MAIL_USE_SMTP) {
    [red] $this->IsSMTP(); [/red] // set mailer to use SMTP
    $this->Host = ini_get('SMTP'); // specify main and backup server
    } else {
    $this->IsSendmail(); // use sendmail
    $this->Sendmail = ini_get('sendmail_path');
    }

    [/code]

  • 2006-02-06 10:38:22

    Re: unable to send mail

    edit include/config.inc.php
    and set MAIL_USE_SMTP to FALSE, like so:

    define('MAIL_USE_SMTP', FALSE);