<div dir="ltr">Hi  <br><br>Through workflow it will not show as it runs in background. Provider 
file will store that failure or success message in database and to check
 status you need to go to detail view of that particular SMS and than 
check status.<div><br></div><div>It depends on provider file 
implementation. Provider file is responsible for all error or success 
message. If provider file is not sending response properly that it will 
not be stored in database. All provider file need to send response in 
particular format.<br><br><br></div><div>Regards<br></div>Manu Urs</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 5:08 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm writing a custom Workflow function that ultimately sends an SMS Message. I have noticed that the SMSNotifier::sendsms function writes the message to the database irrespective of whether the message actually got sent or not.<br>
<br>
This is a bit wrong surely. Or at least the message should be flagged with a failure message of some kind.<br>
<br>
Secondly, if I do get an error message back from the Provider I am seeing the following error:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Fatal error: Class 'ISMSProvider' not found in /var/www/livefit/modules/SMSNotifier/SMSNotifier.php on line 168<br>
</blockquote>
<br>
Which is in the lines:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
if($response['error']) {<br>
    $responseStatus = ISMSProvider::MSG_STATUS_FAILED;<br>
</blockquote>
<br>
Now, there is file modules/SMSNotifier/models/ISMSProvider.php but it is an interface, not a class and it is not _implemented_ by the SMSNotifier class, it is implemented by the Provider Classes like Clickatell. So I am not sure how this is ever supposed to work - unless I've misunderstood interfaces...<br>
<br>
Alan<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Regards,<br></div>Manu<br></div></div>
</div>