SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Mon Mar 01, 2021 07:16
SMSTools3 Community » Help and support Bottom

[answered] Failed Outgoing msg Alert

  This topic is locked

Page:  1

Author Post
Member
Registered:
Nov 2010
Location: Sindh, Pakistan
Hi,

If any message sending failed then email its content to my email address

sms@domain.com

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Eventhandler like this can do the job:

#!/bin/bash
 
EMAIL="sms@domain.com"
 
if [ "$1" == "FAILED" ]; then
 
  if [ -n "$EMAIL" ]; then
    TO=`formail -zx To: < $2`
    sms=`cat $2`
    message="From: sms@localhost
To: $EMAIL
Subject: Sending SMS to $TO failed
 
${sms}"

 
    echo -n "$message" | /usr/sbin/sendmail "$EMAIL"
  fi
fi
 
'bash' Syntax Highlight powered by GeSHi


  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.