Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 01:54:10 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155555
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
WB Mailer Question
Pages: [
1
]
Go Down
Author
Topic: WB Mailer Question (Read 1679 times)
jovy
Offline
Posts: 20
WB Mailer Question
«
on:
February 14, 2007, 06:09:37 PM »
do anyone know how to change the sender of conformation emails and form submision from saying WB Mailer to the Site Name You are Baking
Logged
Bringin' Forth d Lion
doc
Guest
Re: WB Mailer Question
«
Reply #1 on:
February 14, 2007, 06:23:54 PM »
Hello,
the from name
WB Mailer
is used when the session variable DISPLAY_NAME is not defined. That variable should be set whenever a User is logged in.
However, if you want to change the from name from WB Mailer to something else, you need to modify the file /framework/class.wbmailer.php
Code:
// set default sender name
if (isset($_SESSION['DISPLAY_NAME'])) {
$this->FromName = $_SESSION['DISPLAY_NAME'];
} else {
$this->FromName = "WB Mailer"; // change this line
}
Regards Christian
Logged
jovy
Offline
Posts: 20
Re: WB Mailer Question
«
Reply #2 on:
February 14, 2007, 06:55:42 PM »
works great man now a next quest ....
does NE1 here knows how to change the conformation line when a from is submitted to a more personalised message.
right now all i see the default is set to - thank you
Logged
Bringin' Forth d Lion
kweitzel
Forum administrator
Offline
Posts: 6977
Re: WB Mailer Question
«
Reply #3 on:
February 15, 2007, 09:20:56 AM »
personally I use the advanced Form (available at the add-on repository) because it allows me to specify a "thank you" page. But please read all the instructions before installing, the are a couple of catches!
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
jovy
Offline
Posts: 20
Re: WB Mailer Question
«
Reply #4 on:
February 15, 2007, 03:29:29 PM »
Great I try it out
Logged
Bringin' Forth d Lion
learning
Offline
Posts: 61
Re: WB Mailer Question
«
Reply #5 on:
November 22, 2007, 02:16:40 AM »
Quote from: doc on February 14, 2007, 06:23:54 PM
Hello,
the from name
WB Mailer
is used when the session variable DISPLAY_NAME is not defined. That variable should be set whenever a User is logged in.
However, if you want to change the from name from WB Mailer to something else, you need to modify the file /framework/class.wbmailer.php
Code:
// set default sender name
if (isset($_SESSION['DISPLAY_NAME'])) {
$this->FromName = $_SESSION['DISPLAY_NAME'];
} else {
$this->FromName = "WB Mailer"; // change this line
}
Regards Christian
Hi... I am also trying to change the 'from' field when an email is sent from a non logged in visitor. I have managed to find this section of the file, but I am not sure exactly what to change it to.
I would like the email to display the name that is filled in on the form in the field 'name'. Not sure how to put that into the code.
Forgive me if this is a really stupid question, I really don't know much about coding... but am quite happy to try and learn when pointed in the right direction...(ok maybe sometimes I need a shove to the exact solution..lol)
Thanks in advance
Logged
doc
Guest
Re: WB Mailer Question
«
Reply #6 on:
November 22, 2007, 05:15:32 AM »
Hello,
change the text "WB Mailer" in the code line below to whatever you want. Then clear the cache and session of your browser and try again. Do not forget the ""
Code:
$this->FromName = "WB Mailer"; // change this line
Regards Christian
Logged
learning
Offline
Posts: 61
Re: WB Mailer Question
«
Reply #7 on:
November 22, 2007, 06:26:19 AM »
Quote from: doc on November 22, 2007, 05:15:32 AM
Hello,
change the text "WB Mailer" in the code line below to whatever you want. Then clear the cache and session of your browser and try again. Do not forget the ""
Code:
$this->FromName = "WB Mailer"; // change this line
Regards Christian
Hi Christian, thanks for your answer.
Yep, found that line, and know that it needs to be changed... however my problem is knowing what to change it too. I tried "Field:Name"... but that didn't work. Nor did it look right, the emails just came from Field:Name. I am thinking that maybe I need to know the code or something for that particular field of the form field??
Sorry if I am not being very clear, I know what I am thinking in my head, unfortunately no one can read my mind, so I am left having to put it down in my normal jibberish!
Logged
doc
Guest
Re: WB Mailer Question
«
Reply #8 on:
November 22, 2007, 10:21:23 AM »
Hello,
don't have a glue what you want to achieve. Are you talking about the Form mail module, if yes the standard one or the advanced Form module from the add-ons site? If you are talking about the Form module, the relevant code is most likely in the modify.php of the module itself (/modules/form/...).
Regards Christian
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
Re: WB Mailer Question
«
Reply #9 on:
November 22, 2007, 01:27:02 PM »
Hello,
@christian
think learning has created a form wich has a field wich is called "name". He now wants that always this field is used from the mailer as from instead of the hardcoded text "WB Mailer".
@learning
not shure if this makes sense what you want, as the mailer is not only used from the form modul.
Matthias
Logged
learning
Offline
Posts: 61
Re: WB Mailer Question
«
Reply #10 on:
November 22, 2007, 08:13:00 PM »
Christian, sorry, I know I am probably not making it very clear. It is the advance form module I am using.
Correct Matthias, I would like the emails to come from the field "name" on my form rather than "WB Mailer"...
Currently on the form settings I have selected in the Emails From section 'Field: Email'... and the emails come through in this format
WBmailer <
visitor@emailaddress.com
>
If I select the option Emails From 'Field: Name' the come through from the name the visitor has submitted in this format
Visitor Name <
user@serveraddress.com
> (hence I can not just hit reply to the email as it will go back to my server and bounce.
I would like it to say
Visitor Name <
visitoremail@address.com
>
So basically I need to either work out how to hard code that into the form module, or maybe have two options in the settings section so that I can select it to come from both.
Hopefully I have explained it a little clearer.
Thank you both for your time and patience.
Logged
rsrkrishna
Offline
Posts: 4
Re: WB Mailer Question
«
Reply #11 on:
February 10, 2008, 02:11:34 PM »
From : class.wbmailer.php
part of the code given below doesnt clear me.
// set default sender name
if (isset($_SESSION['DISPLAY_NAME'])) {
$this->FromName = $_SESSION['DISPLAY_NAME']; // FROM NAME: display name of user logged in
} else {
$this->FromName = "Its Me"; // FROM NAME: set default name
}
I mean for example if Sign Up is enabled and say some visitor (visitor-1) who is not part of admin grp is logged in and say one more guy from other part of the globe (visitor-2) is visited and wanted to sign up the site and NO ADMIN is logged in, then the second user (visitor-2) would get his details through mail as if he got mail from the non-admin user(Visitor -1).
I think its clear.
What is the basic idea of implementing this way.
Thanks n Regards
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...