Send SMS using Exchange service

Reply
Contributor
Posts: 29

Send SMS using Exchange service

Out Outlook/exchange enviroment allows to send SMS messeges by sending a mail to: [sms:XXXXXXXX


Im trying to get SAS to use the above, without luck so far.

Heres a small code example:

%MACRO mail;

  filename mail email "nul";

  data _null_;

  file mail to=  ("[sms:12345678]")

   from=("sender@company.dk")

   subject="AUTOMAIL: SAS-job er fejlet!!";

  put "SMS wth SAS!";

  run;

%MEND;

I get the following error message:

ERROR: Email: 501 5.5.4 Invalid Address

WARNING: Bad email address: [sms:24421571]

ERROR: No email addresses specified.

Help would be much appriciated !

Thanks.

Kasper

Super User
Super User
Posts: 7,395

Re: Send SMS using Exchange service

Really not sure though I think SAS can only send to a valid email address not to SMS like that.  What you could try however is to setup an email address which has rules in place to bounce the message out to SMS, so rule like if email from SAS then send message to SMS.  Let outlook do the send to SMS.

Contributor
Posts: 29

Re: Send SMS using Exchange service

Thank you for your answer.

I have done some futher testing.

SAS 9.2 (code and log above) strugles with the "mail format" - though running the identical code in SAS 9.3 works like a charm.

New "feature" or perhaps an option?

Best

Kasper

Ask a Question
Discussion stats
  • 2 replies
  • 681 views
  • 6 likes
  • 2 in conversation