phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [Bug #781] SMTP Authenication


From: nobody
Subject: [Phpgroupware-tracker] [Bug #781] SMTP Authenication
Date: Tue, 08 Apr 2003 00:30:55 -0400

=================== BUG #781: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=781&group_id=509

Changes by: Anonymous user        Date: Tue 04/08/2003 at 00:30

------------------ Additional Follow-up Comments ----------------------------
Try editing your email/inc/class.mail_send.inc.php file as follows:

from:

// START SMTP SESSION - now we can send our message. 1st we identify ourselves 
and the sender
$cmds = array (
        "\$src = \$this->msg2socket(\$socket,\"EHLO \$mymachine\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"MAIL FROM:\$fromuser\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);"
);

to:

// START SMTP SESSION - now we can send our message. 1st we identify ourselves 
and the sender
$smtp_username = base64_encode("username");
$smtp_password = base64_encode("password");
$cmds = array (
        "\$src = \$this->msg2socket(\$socket,\"EHLO \$mymachine\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"AUTH LOGIN\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"\$smtp_username\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"\$smtp_password\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"MAIL FROM:\$fromuser\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);"
);



=================== BUG #781: FULL BUG SNAPSHOT ===================


Submitted by: CompCowboy              Project: phpGroupWare                 
Submitted on: Sun 06/30/2002 at 11:22
Category:  email                      Bug Group:  0.9.14 RC3                
Severity:  1 - Ordinary               Priority:  Normal                     
Resolution:  None                     Assigned to:  None                    
Status:  Open                         Component Version:  None              
Platform Version:  Linux - RedHat     Reproducibility:  None                

Summary:  SMTP Authenication

Original Submission:  My mail servers require outgoing authenication. I believe 
this is the problem that results in this error:
Message could not be sent. 

Mailer Error: SMTP Error: could not connect to SMTP host server(s)

Is there a workaround or a future option for this? I tried localhost for mail 
server, and had same results. However when I had 0.9.12 I had no troubles. 
Comments would be appreciated. 
Thanks,

Todd Strait

Follow-up Comments
*******************

-------------------------------------------------------
Date: Tue 04/08/2003 at 00:30       By: None
Try editing your email/inc/class.mail_send.inc.php file as follows:

from:

// START SMTP SESSION - now we can send our message. 1st we identify ourselves 
and the sender
$cmds = array (
        "\$src = \$this->msg2socket(\$socket,\"EHLO \$mymachine\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"MAIL FROM:\$fromuser\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);"
);

to:

// START SMTP SESSION - now we can send our message. 1st we identify ourselves 
and the sender
$smtp_username = base64_encode("username");
$smtp_password = base64_encode("password");
$cmds = array (
        "\$src = \$this->msg2socket(\$socket,\"EHLO \$mymachine\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"AUTH LOGIN\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"\$smtp_username\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"\$smtp_password\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);",
        "\$src = \$this->msg2socket(\$socket,\"MAIL FROM:\$fromuser\r\n\");",
        "\$rrc = \$this->socket2msg(\$socket);"
);

-------------------------------------------------------
Date: Wed 11/20/2002 at 20:00       By: alexbsa
This has been reassigned as a feature request.


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=781&group_id=509




reply via email to

[Prev in Thread] Current Thread [Next in Thread]