Subversion Repositories Sites.tela-botanica.org

Rev

Rev 462 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 462 Rev 481
Line 572... Line 572...
572
 *
572
 *
573
 * @global  AUTH	Un objet PEAR::Auth
573
 * @global  AUTH	Un objet PEAR::Auth
574
 * @return  boolean true en cas de succès
574
 * @return  boolean true en cas de succès
575
 */
575
 */
576
function inscription_lettre ($action) {
576
function inscription_lettre ($action) {
577
	$mail = & Mail::factory ('smtp') ;
577
	$mail =& Mail::factory('smtp');
578
	$email = $GLOBALS['AUTH']->getUsername() ;
578
	$email = $GLOBALS['AUTH']->getUsername();
579
	$headers ['Return-Path'] = $email ;
579
	$headers ['Return-Path'] = $email;
580
	$headers ['From'] = "<".$email.">" ;
580
	$headers ['From'] = '<'.$email.'>';
581
	$headers ['Subject'] = $action ;
581
	$headers ['Subject'] = $action;
582
	$headers ['Reply-To'] = $email ;
582
	$headers ['Reply-To'] = $email;
Line 583... Line 583...
583
	
583
	
584
	$mail -> send ($action, $headers, "") ;
584
	$mail->send($action, $headers, '');
585
	if (PEAR::isError ($mail)) {
585
	if (PEAR::isError($mail)) {
586
		echo '<p class="erreur">Le mail n\'est pas partie...</p>' ;
586
		echo '<p class="erreur">Le mail n\'est pas partie...</p>';
587
		return false ;
587
		return false;
588
	}
588
	}
589
	return true ;
589
	return true;
Line 590... Line 590...
590
}
590
}
591
 
591
 
592
/**
592
/**