Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 10:12 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: minor - notification email use static subject string
PostPosted: Tue May 12, 2009 1:42 am 
Offline

Joined: Tue Mar 17, 2009 4:00 pm
Posts: 153
Location: Where the sun shines
Hello,

rev2010 and earlier use a static text for the subject of the credit notification - the email subject is always "CREDIT LOW : You have less than XX"

I've tried a small change, to take the subject from the mail configuration screen, in the file a2billing_notify_account.php

here is the diff:
168,171c167
<
< $mail_tile = str_replace('$credit_notification', "$credit_notification", $subject);
< $mail_tile = str_replace('$credit_currency', "$credit_currency", $mail_tile);
< $mail_tile = str_replace('$currency', "$currency", $mail_tile);
---
> $mail_tile = "CREDIT LOW : You have less than " . $mycard['credit_notification'];

this will retrieve the mail subject from the config screen value, an replace some of the tokens with their values


hope you'll find this interesting,

jean


Top
 Profile  
 
 Post subject: Re: minor - notification email use static subject string
PostPosted: Tue May 12, 2009 3:02 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
Well done, I just committed a patch for this :
http://www.asterisk2billing.org/cgi-bin ... geset/2015

Next time you can open a ticket on trac directly and use svn diff to build you patch.

Yours,
/Areski


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group