Send SMS to phone from iSeries

85 pts.
Tags:
IBM iSeries
Mobile
SMS
How to send a SMS to a mobile phone or a pager from iSeries?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Poojaary, here we have SMSBLUENOTE and the messages are sent as below

SNDSMSMSG TEXT('Hello Operator, Job holds large number of locks') COUNTRY (55) PHONE(119xxxxxxxx).

Att;

PutzGrilla                                                  

Discuss This Question: 16  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • poojaary
    Hi PutzGrilla. Thank you for your reply but here I want to send SMS with out using any third party product, using IBM provided iSeries commands or apis. Any help regarding this approach?
    85 pointsBadges:
    report
  • Krttrs
    You could set up SNDDST 
    or
    Our company uses MMAIL

    go to  Giovanni B. Perotti.  Easy400.net site
    http://www.easy400.net/
    see 
    http://mmail.easy400.net/

    Use the   EMLMSG   program

    ChgVar     &ToAddr  ('##########@vtext.com')               /* replace ###'s with phone */
    ChgVar     &ToName  ('IT Director')                        
    ChgVar     &ToAddr2 ('##########@vtext.com')               
    ChgVar     &ToName2 ('You gotta Problem')                    
    EMLMSG SUBJECT(&SUBJECT) FROMNAME(&SNDR) +                 
            FROMADDR(&SNDREMAIL) +                             
            TO(&ToAddr/&TONAME/*TO +                           
                   &ToAddr2/&ToName2/*TO) +                        
            TXTF(&LIB/QRPGLESRC) TXTMBR(&TXTMBR) EDTMBR(*NO)  

    You could read his code and develop your own if you want to reinvent.
    65 pointsBadges:
    report
  • excellentrandy
    I thought it's impossible. Hehehe. 
    1,330 pointsBadges:
    report
  • hunshabbir7
    I think Poojaary asked about sending SMS not about sending EMAIL.
    2,820 pointsBadges:
    report
  • excellentrandy
    Right. The question is about sending SMS using AS400. 
    1,330 pointsBadges:
    report
  • WoodEngineer
    We use IBM's SNDDST to send text messages.  No need to buy anything.  In fact, we coded several SNDDST messages into iSeries Navigator to notify when certain events occur.  Works nicely.
    7,485 pointsBadges:
    report
  • excellentrandy
    Hi Sir WoodEngineer,
    How did you do that? I really want to know how to. Please. 
    Thanks, 
    Randy
    1,330 pointsBadges:
    report
  • WoodEngineer
    Try this command:
    SNDDST TYPE(*LMSG) TOINTNET(('2125551212@vtext.com' *PRI)) DSTD('DASD storage limit') LONGMSG('DASD at serious or critical level on &ENDPOINT at &DATE &TIME') SUBJECT('DASD Stg')            
    The &xxx variables are filled in by iNav.
    We aware that each carrier has their own domain.  For example, AT&T is xxx@txt.att.net.                      

    7,485 pointsBadges:
    report
  • excellentrandy
    Hahaha. I don't get it. Will study this for the coming weeks. Hope someone can help. Please. :)
    1,330 pointsBadges:
    report
  • ToddN2000
    SNDDST work just fine, like WoodEngineer mentioned.
    in his command, you use the phone number followed by the carrier
    domain.

    Here are a few more Carriers info
    AT&T		@txt.att.net (SMS)		
    		@mms.att.net (MMS)
    Verizon		@vtext.com (SMS)		
    		@vzwpix.com (MMS)
    T-Mobile	@tmomail.net
    Sprint		@messaging.sprintpcs.com (SMS)
    		[personalized name]@pm.sprint.com (MMS)
    Alltel		@message.alltel.com
    BellSouth  	@blsdcs.net
    Blue Sky Frog	@blueskyfrog.com
    Boost Mobile	@myboostmobile.com
    Cellular South	@csouth1.com
    Cellular One West	@mycellone.com
    Cellular One	@mobile.celloneusa.com
    Cincinnati Bell	@gocbw.com
    Cricket		@sms.mycricket.com (SMS)
    		@mms.mycricket.com (MMS)
    Edge Wireless	@sms.edgewireless.com
    Einstein PCS	@einsteinsms.com
    Metro PCS	@mymetropcs.com
    Nextel		@messaging.nextel.com
    Orange		@orange.net
    Pagenet		@pagenet.pagenet.ca
    PCS Rogers	@pcs.rogers.com
    Powertel	@voicestream.net
    PSC Wireless	@sms.pscel.com
    Qualcomm	@pager.qualcomm.com
    Qwest		@qwestmp.com
    Satelindo GSM	@satelindogsm.com
    Safaricom	@safaricomsms.com
    Simple Freedom	@text.simplefreedom.net
    Skytel-Alphanum @skytel.com
    Smart Telecom	@mysmart.mymobile.ph
    SunCom		@tms.suncom.com
    SureWest Comm 	@mobile.surewest.com
    SwissCom Mobile	@bluewin.ch
    U.S. Cellular	@email.uscc.net
    USA Mobility	@usamobility.net
    Virgin Mobile Canada	@vmobile.ca
    Virgin Mobile USA	@vmobile.com
    Weblink Wireless	@airmessage.net
    84,660 pointsBadges:
    report
  • WoodEngineer
    SNDDST can be tested from an IBM i command line. Just send yourself a message at 999999@yourcarrier.com where 999999 is your cell phone number and your carrier is from ToddN's list.
    7,485 pointsBadges:
    report
  • LJose28
    How do i find out the domain name of a cellular service provider?
    I have to implement SMS functionality for a system based in Singapore?
    10 pointsBadges:
    report
  • pdraebel
    The principle of sending the mail to the service provider was known to me, problem is to find out the providers' domain names. Have seen several lists of US providers' domains, but I have been unable to find Local European providers' domain names.
    7,485 pointsBadges:
    report
  • GregManzo
    Hey, you could always try just asking the carrier :-) or would that be cheating?
    1,720 pointsBadges:
    report
  • goodrandy
    Tried this command:
    SNDDST TYPE(*LMSG) TOINTNET(('9999999999@vtext.com')) DSTD('test sms message from xxx') MSG('test message from xxx') LONGMSG('test message from xxx') SUBJECT('test xxx')                                         
    And got this:
    An Internet Address was specified in the TOINTNET parameter but there is no route SMTP gateway.
    Message ID . . . . . . :   CPF9D03       Severity . . . . . . . :   40        
    Message type . . . . . :   Diagnostic                                         
    Date sent  . . . . . . :   07/28/17      Time sent  . . . . . . :   16:29:50  
                                                                                  
    Message . . . . :   An Internet Address was specified in the TOINTNET parameter but there is no route SMTP gateway.                               
    Cause . . . . . :   The Send Distribution (SNDDST) command can not send mail to an internet address because there is no route to the SMTP gateway defined via the SMTPRTE parameter on the CHGDSTA command.                           
    Recovery  . . . :   Do not specify an internet address via the TOINTNET parameter or specify a User ID / Address as the route to the SMTP gateway by the SMTPRTE parameter on the Change Distribution Attribute (CHGDSTA)  command.                                                                                                                  
    10 pointsBadges:
    report
  • azohawk
    The SNDDST (enter the command on a command line and prompt it to see how WoodEngineer's example applies.

    One thing that we have done is we have two group profiles: one for daytime operations and a second for off hours. We email the message to the group profile (which is defined in our email server) which relays the messages to the appropriate people. The daytime messages go to office emails and off hours goes to cell phones. This may or may not be appropriate for you, but it is slight twist that may be useful to you.

    2,720 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: