<Mail From> header not working PHPMailer with SMTP
Installing PHPMailer v.5 (server running php5) with SMTP function. I have installed the main files in mail directory such as:
# class.phpmailer.php: This is the main class file which contains the various email functions.
# class.smtp.php: This additional class allows SMTP authentication.
I don't think I need class.pop3.php as I'm sending mails server side (smtp)and should be accepted by most IP's pop3 servers.
All my mail functions work great with SMTP and I can send and receive. My problem is that my recipients only receive mail from admin@domain instead of "My Website Name" Sounds simple enough, I know and I have made adjustments to class.phpmailer.php and have inserted my specific mail attributes for my site such as mail address, mail from, smtp server, user/pass for smtp,etc.
PHP Mailer v5.0 class.phpmailer.php is a very long script and I only found a couple of places to put the FROM address as follows:
PROPERTIES,
PUBLIC
/////////////////////////////////////////////////
/**
*
Email priority (1 = High, 3 = Normal, 5 = low).
* @var
int
*/
public $Priority = 3;
/**
* Sets the
CharSet of the message.
* @var string
*/
public
$CharSet = 'iso-8859-1';
/**
* Sets the
Content-type of the message.
* @var string
*/
public $ContentType = 'text/plain';
/**
* Sets the
Encoding of the message. Options for this are
*
"8bit", "7bit", "binary", "base64", and "quoted-
printable".
* @var string
*/
public $Encoding
= '8bit';
/**
* Holds the most recent mailer error
message.
* @var string
*/
public $ErrorInfo =
'';
/**
* Sets the From email address for the
message.
* @var string
*/
public $From =
'EMAIL@DOMAIN.com';
/**
* Sets the From name of
the message.
* @var string
*/
public $FromName
= 'MY WEBSITE NAME HERE';
/**
* Sets the
Sender email (Return-Path) of the message. If not
empty,
* will be sent via -f to sendmail or as 'MAIL
FROM' in smtp mode.
* @var string
*/
public
$Sender = ''; <THIS SPOT IS NOT WORKING FOR ME EITHER
/**
If anybody has a copy of the script version5, let me know if I'm missing something here.
|