Project

General

Profile

« Previous | Next » 

Revision 638

Added by thorn almost 17 years ago

Allow a user-supplied From-Name in form-settings for email und success-email.

View differences:

class.wbmailer.php
89 89
			$this->CharSet='utf-8';
90 90
		}
91 91

  
92
		// set default sender name
93
		if (isset($_SESSION['DISPLAY_NAME'])) {
94
			$this->FromName = $_SESSION['DISPLAY_NAME'];            // FROM NAME: display name of user logged in
95
		} else {
96
			$this->FromName = $db_wbmailer_default_sendername;			// FROM NAME: set default name
97
		}
92
		// set default sender name
93
		if($this->FromName == 'Root User') {
94
			if(isset($_SESSION['DISPLAY_NAME'])) {
95
				$this->FromName = $_SESSION['DISPLAY_NAME'];            // FROM NAME: display name of user logged in
96
			} else {
97
				$this->FromName = $db_wbmailer_default_sendername;			// FROM NAME: set default name
98
			}
99
		}
98 100

  
99 101
		/* 
100 102
			some mail provider (lets say mail.com) reject mails send out by foreign mail 

Also available in: Unified diff