Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 03:42:08 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Email form  (Read 321 times)
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« on: March 17, 2010, 08:30:13 PM »

Hi,

I am building a kind of yellow pages module, and I need interaction via email, and just noticed this issue:

When WB sends email to user (who is loged in), he gets email and in From email WB use current username of loged user.

So if I fill in form as Ivan, I get email as Ivan <no-replay@my-test-site.xy> and If Marko fills in the form, he will get email from Marko <no-replay@my-test-site.xy>

So it doesnt make sence to me that WB user use session username as sender, especialy when module interacts with loged users, when he can use Default Sender Name from Settigns..

What do you think ?

This is code for From Name in email (class.wbmailer.php)
Code:
// set default sender name
if($this->FromName == 'Root User') {
if(isset($_SESSION['DISPLAY_NAME'])) {
$this->FromName = $_SESSION['DISPLAY_NAME'];            // FROM NAME: display name of user logged in
} else {
$this->FromName = $db_wbmailer_default_sendername; // FROM NAME: set default name
}
}

Also, I am curious, in this code:
Code:
$wb->mail(SERVER_EMAIL,$admin_email,$mail_subject,$mail_message)
How to add cc and bcc fields?

if
Code:
$admin_email = no-replay@my-test-site.xy
is there a way to that I can specify the senders name in $admin_email like:
Code:
$admin_email = ThisName no-replay@my-test-site.xy

??

cheers
« Last Edit: March 17, 2010, 08:37:54 PM by crnogorac081 » Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #1 on: March 18, 2010, 06:16:02 PM »

No comments  huh grin

Is it realy neccessary that WB mailer use Display name of loged user on mail send ? and if yes, for what purpose..

I cant figure out an example why it could be usefull...but it is annoying me when loged user fills in some form and he gets email from site with site email address and his Display name in From field..

Also, how to add cc and bcc ?

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!