Ok I'll need to check into this SMPP server, not real sure what that is though

thanks,

Mike(mickalo)Blezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  ----- Original Message ----- 
  From: Kwaku Addo Ofori 
  To: Mike Blezien 
  Cc: beginners@perl.org 
  Sent: Friday, June 29, 2012 3:42 PM
  Subject: Re: SMS services


  Hi Mike,

  You can try the code below after you have installed the module:

  --code-begins--

  #!/usr/bin/perl

  use Net::SMPP;

  $smpp = Net::SMPP->new_transceiver('127.0.0.1', port=>1234, 
system_id=>'username', password=>'password') or die;
  $resp_pdu = $smpp->submit_sm(destination_addr => '+123456789', source_addr => 
'4567', short_message => 'Test send sms to mobile') or die;

  exit(0);

  --code-ends--

  You can replace new_transceiver with new_transmitter - you should still be 
able to send sms. Replace 127.0.0.1 with the IP of the SMPP server, replace 
1234 with the port of the SMPP server, put in a valid username and password. 
Put in a valid destination address - phone number you want to send the text 
message to. Put in a valid source address - shortcode or phone number you want 
to send message from, this should be allowed by the SMPP server. You can then 
put in your message.

  NB. I only use this script and variations of it to test my SMPP server from 
time to time. It's not very clean but it should work fine.


  On Fri, Jun 29, 2012 at 8:31 PM, Mike Blezien <mick...@frontiernet.net> wrote:

    Hello,

    I was looking at this module you referred too. would you happen to have an 
example of coding used to send a simple text message to a cell number by chance 
that I could use as a sample, would appreciate it. All I need to do is send a 
message to one cell number.

    Thanks,

    Mike(mickalo)Blezien
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Thunder Rain Internet Publishing
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
      ----- Original Message ----- 
      From: Kwaku Addo Ofori 
      To: Mike Blezien 
      Cc: Perl List 
      Sent: Friday, June 29, 2012 2:05 PM
      Subject: Re: SMS services


      Hi Mike,

      If you want a simple smpp client, check out Net::SMPP. I've been using it 
for years as a simple smpp client test tool without any issues. It's quite 
simple to use.

      Kwaku.


      On Fri, Jun 29, 2012 at 6:52 PM, Mike Blezien <mick...@frontiernet.net> 
wrote:

        Hello,

        we would like to setup a Perl script for sending SMS messages. I found 
several different Perl modules on CPAN for doing this and was wondering if 
there are recommended messaging services that others have used with these 
modules that they could recommend. And what module(s) they recommend.

        Thank you,

        Mike(mickalo)Blezien
        =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        Thunder Rain Internet Publishing
        -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 

        -- 
        To unsubscribe, e-mail: beginners-unsubscr...@perl.org
        For additional commands, e-mail: beginners-h...@perl.org
        http://learn.perl.org/






Reply via email to