Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sdk:scripts:sms-to-email [2015/05/05 15:04] – external edit 127.0.0.1sdk:scripts:sms-to-email [2020/06/25 12:15] (current) gray
Line 4: Line 4:
  * Copyright (C) 2012 NetModule AG, Switzerland  * Copyright (C) 2012 NetModule AG, Switzerland
  */  */
 +
  
 if (argc < 1 || strlen(argv[1]) == 0) { if (argc < 1 || strlen(argv[1]) == 0) {
Line 29: Line 30:
  
         subject = "SMS received";         subject = "SMS received";
 +        body = nb_sms_body(msgs[i]);
         sprintf(body, "%s\n", msg);         sprintf(body, "%s\n", msg);
  
Line 35: Line 37:
         } else {         } else {
             printf("successfully sent e-mail\n");             printf("successfully sent e-mail\n");
 +            nb_sms_delete(msgs[i]);
         }         }
     }     }