Email Content
-
codetwists
- Regular
- Posts: 44
- Joined: Sat Dec 20, 2008 5:46 pm
Email Content
How can I edit the content of email sent out by Serendipity?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Email Content
Hi!
Either through code change, change of the constants in the language file or creation of an event plugin. That depends on the exact modifications you want to make.
Regards,
Garvin
Either through code change, change of the constants in the language file or creation of an event plugin. That depends on the exact modifications you want to make.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
codetwists
- Regular
- Posts: 44
- Joined: Sat Dec 20, 2008 5:46 pm
Changing the email content in the language file
I thought it might be in a language file somewhere, but I'm not familiar enough with all of the various files and I was unable to locate the right one. Can you point me in the right direction?
Thanks for your help!
Myron
Thanks for your help!
Myron
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Changing the email content in the language file
Hi!
Yes, if you tell me which E-Mail you are referring to.
You can check includE/functions.inc.php, the serendipity_sendMail() function. For example, it uses the SIGNATURE constant, found in lang/(UTF-8)/serendipity_lang_XX.inc.php. Other common constants are A_NEW_COMMENT_BLAHBLAH for comment mails.
Simply open the language file and search for the text that you received in the correspondig mail.
Regards,
Garvin
Yes, if you tell me which E-Mail you are referring to.
You can check includE/functions.inc.php, the serendipity_sendMail() function. For example, it uses the SIGNATURE constant, found in lang/(UTF-8)/serendipity_lang_XX.inc.php. Other common constants are A_NEW_COMMENT_BLAHBLAH for comment mails.
Simply open the language file and search for the text that you received in the correspondig mail.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
codetwists
- Regular
- Posts: 44
- Joined: Sat Dec 20, 2008 5:46 pm
Re: Changing the email content in the language file
Thats works! Thanks!garvinhicking wrote:Simply open the language file and search for the text that you received in the correspondig mail.
Myron
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Regards,
Garvin
We did, and I had a look, and it's much harder than I initially anticipated. It would mean loosing all current constants because the new way would be mor more harder to template and style. Then this would even be harder than to edit the mail contents through constants, because the whole tpl would be full of placeholders...Don Chambers wrote:Is this just my imagination, or did we once discuss the possibility that various emails might be converted to tpl's? If we didn't discuss it, it sure would be a cool feature.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/