[Help] SMTP problem.

This mod, will add the ability to make "newsletters" and other customised mass emails, status is showen while sending mass email
It will also be posible to grant other users permissions to send mass email to a specific usergroup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

[Help] SMTP problem.

Postby NGLeader on Sun 29. Jun, 2003 21:25

Error:

Ran into problems sending Mail. Response: 502 unimplemented (#5.5.1)

DEBUG MODE

Line : 40
File : C:\Apache2\htdocs\phpBB2\includes\smtp.php

Code: Select all
// This function has been modified as provided
// by SirSir to allow multiline responses when
// using SMTP Extensions
//
function server_parse($socket, $response)
{
   while ( substr($server_response,3,1) != ' ' )
   {
      if( !( $server_response = fgets($socket, 256) ) )
      {
         message_die(GENERAL_ERROR, "Couldn't get mail server response codes", "", __LINE__, __FILE__);
      }
   }

   if( !( substr($server_response, 0, 3) == $response ) )
   {
Line 40:      message_die(GENERAL_ERROR, "Ran into problems sending Mail. Response: $server_response", "", __LINE__, __FILE__);
   }
}

/****************************************************************************
*   Function:       smtpmail
*   Description:    This is a functional replacement for php's builtin mail
*                  function, that uses smtp.
*   Usage:         The usage for this function is identical to that of php's
*                  built in mail function.
****************************************************************************/
function smtpmail($mail_to, $subject, $message, $headers = "")
{
   // For now I'm using an array based $smtp_vars to hold the smtp server
   // info, but it should probably change to $board_config...
   // then the relevant info would be $board_config['smtp_host'] and
   // $board_config['smtp_port'].
   global $board_config;
NGLeader
Poster
Poster
 
Posts: 10
Joined: Mon 12. May, 2003 07:01

Return to Custom mass email [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron