Forums / Cotonti / Development / SMTP

Twiebie
#26442 2010-10-01 22:59
I also had this problem when I used Seditio before I switched to Cotonti, but back then I found a topic where somebody explained a change in one of Seditio's core files and it fixed the problem with my sender being instead of the admin e-mail address.

Unfortunately that was quite some time ago and I haven't been able to find it..


Edit: Think i've found that bit.

function sed_mail($fmail, $subject, $body, $headers='')
{
    global $cfg;

    if(empty($fmail)) return(FALSE);

    require("plugins/postman/inc/postoffice.class.php");
    $PostMan = new PostOffice();
    $PostMan->IsHTML(false);
    $PostMan->FromName = $cfg['maintitle'];
    $PostMan->Subject = $psoptions['subject'];
    $PostMan->AddAddress($fmail);
    $PostMan->Subject = $subject;
    $PostMan->Body = $body;
    $res['email'] = $PostMan->Send();   
    $res['error_info'] = $PostMan->ErrorInfo;
    $PostMan->ClearAddresses();  
   
    if($res['email'])
    {
        sed_stat_inc('totalmailsent');
        return(TRUE);   
    }
    else   
    {
        return(FALSE);
    }
}

Must have had the postman plugin installed back then..
This post was edited by Twiebie (2010-10-02 00:17, 13 years ago)