s1rk3ls
11-07-06, 01:02 AM
I wanted a way to have new order and ticket notifications sent to my pager or cell-phone - As both my pager and cellphone each have an actual email address, this is easy to do without worrying about SMS or other such things.
My problem was that I only wanted a "one liner", not a full-text copy of the order or ticket... So here's what I've come up with so far:
In the templates folder, I added the following lines to the bottom of supportticketsubmit-confirm.tpl
{php}
mail("[email protected]", "New Support Ticket", "New support ticket, #$tid at mydomain.com");
{/php}
Now, this covers tickets entered via the "submit ticket" link in the support system, but what about emails piped in?
This one was a little trickier - but ended up being so simple :)
in the pipe folder, I renamed pipe.php to pipe1.php and created a new pipe.php with the following contents:
<?php
mail("[email protected]","New Support Ticket", "New support ticket submitted via email");
include("pipe1.php");
?>
So far, this takes care of notifying me of any support tickets - and notifications for orders are easy as there is already a checkout script which you can enable in the admin (checkoutscript.php in the includes folder)
I just added the following to the bottom:
mail("[email protected]","New Order", "New order placed at mydomain.com");
My problem was that I only wanted a "one liner", not a full-text copy of the order or ticket... So here's what I've come up with so far:
In the templates folder, I added the following lines to the bottom of supportticketsubmit-confirm.tpl
{php}
mail("[email protected]", "New Support Ticket", "New support ticket, #$tid at mydomain.com");
{/php}
Now, this covers tickets entered via the "submit ticket" link in the support system, but what about emails piped in?
This one was a little trickier - but ended up being so simple :)
in the pipe folder, I renamed pipe.php to pipe1.php and created a new pipe.php with the following contents:
<?php
mail("[email protected]","New Support Ticket", "New support ticket submitted via email");
include("pipe1.php");
?>
So far, this takes care of notifying me of any support tickets - and notifications for orders are easy as there is already a checkout script which you can enable in the admin (checkoutscript.php in the includes folder)
I just added the following to the bottom:
mail("[email protected]","New Order", "New order placed at mydomain.com");