FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » smtp AUTH
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
icon4.gif  Re: smtp AUTH [message #5505 is a reply to message #5490] Thu, 05 September 2002 08:58 Go to previous messageGo to previous message
crac is currently offline  crac   Switzerland
Messages: 7
Registered: September 2002
Karma:
Junior Member
ok, I found the 2 bugs:

You have to change three files (smtp.inc, theme/default/email.php, and theme/default/remail.php):

change the following functions:

FROM

function send_to_hdr()
{
	if( !@is_array($this->to) ) $this->to = array($this->to);
	
	foreach( $this->to as $to_addr ) {
		$this->wts("RCPT TO: ".$to_addr);
		if( !$this->get_return_code() ) return;
	}
	return 1;
}


TO

function send_to_hdr()
{
	if( !@is_array($this->to) ) $this->to = array($this->to);
	
	foreach( $this->to as $to_addr ) {
		$this->wts("RCPT TO: <".$to_addr.">");
		if( !$this->get_return_code() ) return;
	}
	return 1;
}


AND FROM

function send_from_hdr()
{
	$from_name = $GLOBALS['FORUM_TITLE'] ? $GLOBALS['FORUM_TITLE'] : $GLOBALS['NOTIFY_FROM'];
	$this->wts("MAIL FROM: ".from_name." <".$GLOBALS['NOTIFY_FROM'].">");
	return $this->get_return_code();
}


TO

function send_from_hdr()
{
	//$from_name = $GLOBALS['FORUM_TITLE'] ? $GLOBALS['FORUM_TITLE'] : $GLOBALS['NOTIFY_FROM'];
	$this->wts("MAIL FROM: <".$GLOBALS['NOTIFY_FROM'].">");
	return $this->get_return_code();
}

[Updated on: Thu, 05 September 2002 10:38]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message icon13.gif
Read Message
Read Message
Previous Topic: bug in adm/admmassemail.php
Next Topic: last post in thread link not working?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 12:09:51 GMT 2024

Total time taken to generate the page: 0.04064 seconds