use warnings; use strict; use SMS::Send; my $twilio_sender = SMS::Send->new( 'Twilio', _accountsid => 'API account ID', _authtoken => 'API auth token', _from => '+Your Twilio phone number' ); my $sent = $twilio_sender->send_sms( text => "Hey stevieb!", to => "+phone_number" ); if (! $sent) { warn "Couldn't send message!"; }