Enter the Guess MyBB 1.6 Release Date Contest
AdvancedProfile 2 | [Public Beta] MyTrader
Latest Releases: Password Change - Mark Unread - Ban Appeal
Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
|
SMTP sender's name
|
| Author |
Message |
egymma
Junior Member
Posts: 5
Joined: Feb 2010
Reputation: 0
|
SMTP sender's name
Hello all
i'm using last version of mybb (MyBB 1.4.11)
after i put the smtp details with the gmail email and pass,, i get the mails in my account like this
from: [email protected]
subject : subject
i want to get the mail like this
from: egymma
subject : subject
i tried changing my name in gmail's settings but still the same
i tried to send an email through gmail directly, i got the mail like this
from: egymma
subject : subject
i tried this
PHP Code:
$this->send_data('MAIL FROM: egymma <'.$this->from.'>', '250')
and this
PHP Code:
$this->send_data('MAIL FROM: "egymma" <'.$this->from.'>', '250')
and didnt work
so what should i do ??? how can i set the sender's name ??
(This post was last modified: 02-03-2010 10:07 PM by egymma.)
|
|
| 02-03-2010 10:06 PM |
|
|
Detective RooTz
Member
Posts: 156
Joined: Feb 2010
Reputation: 0
|
RE: SMTP sender's name
I would also like to know how to do this. I'm tired of getting emails from [email protected] and I'd rather see a name. t's more professional and easier to deal with if you have a lot of users.
|
|
| 02-06-2010 02:17 AM |
|
egymma
Junior Member
Posts: 5
Joined: Feb 2010
Reputation: 0
|
RE: SMTP sender's name
finally someone replied...!!!!!!!!
why this forum i so deserted ???!!!!
(This post was last modified: 02-06-2010 02:26 AM by egymma.)
|
|
| 02-06-2010 02:26 AM |
|
Detective RooTz
Member
Posts: 156
Joined: Feb 2010
Reputation: 0
|
RE: SMTP sender's name
(02-06-2010 02:26 AM)egymma Wrote: finally someone replied...!!!!!!!!
why this forum i so deserted ???!!!!
No clue. Um, I do know it has to be in the script it self not your Gmail..
so yeah Um, I looked into it and couldn't figure it out but I'm sure there is someone go around to other MYBB websites and post this. I'm sure you'll get a response soon.
|
|
| 02-06-2010 02:34 AM |
|
egymma
Junior Member
Posts: 5
Joined: Feb 2010
Reputation: 0
|
RE: SMTP sender's name
finally here is the solution::
This should be set inside the "class_mailhandler.php" file, replacing in "function set_common_headers()" this line :
PHP Code:
$this->headers .= "From: {$this->from}{$this->delimiter}";
with this one :
PHP Code:
$this->headers .= "From: egymma <{$this->from}>{$this->delimiter}";
Because this function is called from the "build_message" function.
There should be an easier way to do this, but it seem that MyBB developpers did not give us any other choices...
By exdiogene.
(This post was last modified: 02-06-2010 08:35 AM by egymma.)
|
|
| 02-06-2010 08:34 AM |
|
Detective RooTz
Member
Posts: 156
Joined: Feb 2010
Reputation: 0
|
RE: SMTP sender's name
(02-06-2010 08:34 AM)egymma Wrote: finally here is the solution::
This should be set inside the "class_mailhandler.php" file, replacing in "function set_common_headers()" this line :
PHP Code:
$this->headers .= "From: {$this->from}{$this->delimiter}";
with this one :
PHP Code:
$this->headers .= "From: egymma <{$this->from}>{$this->delimiter}";
Because this function is called from the "build_message" function.
There should be an easier way to do this, but it seem that MyBB developpers did not give us any other choices...
By exdiogene.
Thanks for that. This has been tested and it works. I've been looking for this for a while.
|
|
| 02-06-2010 08:53 AM |
|