ListMailPRO Email Marketing Software Forums
ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: chris6 on June 02, 2005, 09:35:47 am
-
Does list mail have a facility to automatically make the first letter of
peoples' names a capital letter?
www.YourBusinessSuccess.co.uk
-
Yes, this was added for v1.8. In message codes dealing with names (first, last, and fullname) there is a new option for capitalization. All you have to do is enable it for each code.
Regards!
-
Yes, this was added for v1.8. In message codes dealing with names (first, last, and fullname) there is a new option for capitalization. All you have to do is enable it for each code.
Regards!
Any chance of enlightening me as to "how to enable it" for each code.
Thanks
-
For the benefit of any one else wanting to do this.
Go to Send Email
click on View Message Codes above the Subject Bar
Scroll to the bottom of the codes and click on Edit Message Codes
Then Edit the first name code and click on the Capitalize button and save it.
eh Voila!
www.CardellMedia.com
-
I'm glad you were able to figure it out. Instead of going through the "View Message Codes" popup, which results in a toolbar-less browser window, you can also simply click "Message Codes" on the main left menu.
Regards! :D
-
I had missed this option, but with the help of the forum, I can now spend less time editing the names of new subscribers.
However, just as a point of efficiency, would it be better to capitalize the names when added to the database rather than capitalize them for each and every mailing? It would use fewer CPU cycles to do it this way.
Just my $.02.
Thanks for a great program.
- Alan
http://www.PowerKeysPub.com
-
Yes, you can use JavaScript to format your names before they get to ListMail. Indeed, it should use less CPU at mailing time as the capitalize function is now a good 10 lines to account for names like "O'Brian", and "McDonald".
Here's the new code:
function capitalize($name=NULL) {
if(empty($name)) return false;
$name = strtolower($name);
$names_array = explode('-',$name);
for ($i = 0; $i < count($names_array); $i++) {
if (strncmp($names_array[$i],'mc',2) == 0 || ereg('^[oO]\'[a-zA-Z]',$names_array[$i])) {
$names_array[$i][2] = strtoupper($names_array[$i][2]);
}
$names_array[$i] = ucfirst($names_array[$i]);
}
$name = implode('-',$names_array);
return ucwords($name);
}
If you do something like this in JavaScript I'd be interested in a copy. I could translate it too, perhaps for a future improvement to the signup form generator.
Regards!