Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Saturday at 3:51 PM
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Email2sms~~~
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="dumasrc" data-source="post: 6738664" data-attributes="member: 242705"><p>Hi There,</p><p></p><p>Here you Go,</p><p></p><p>#!/usr/bin/perl</p><p></p><p># Scipt: email2sms.pl</p><p># Author: Lee Engel, [EMAIL PROTECTED]</p><p># Date: 14-03-2006</p><p></p><p>use Email::Simple;</p><p>use Net::SMS::Clickatell;</p><p></p><p>my $logfile = "/usr/local/smsc/incoming.log"; # The log file</p><p>my $raw_mail;</p><p>my %headers = ();</p><p>my $API_CODE = '123456'; # You'll get this when you sign up my $URL = ''; # If you wanna send it somewhere else... my $USERNAME = 'easitext'; # Your Clickatell username</p><p>my $PASSWORD = 'very_secret_password'; # ...and the password</p><p></p><p>while(<>){ $raw_mail .= $_; } # Put the entire mail into a variable my $mailobj = Email::Simple->new($raw_mail);</p><p></p><p>$headers{Subject} = $mailobj->header("Subject"); # Get the number from the subject line $headers{From} = $mailobj->header("From"); # Get the senders address for logging $headers{Subject} =~ s/[^\d]//g; # Strip away non-digits</p><p>$headers{Subject} =~ s/\s//g; # Strip away whitespace</p><p></p><p>if($headers{Subject} =~ /^0(8|7)(2|3|4|6|9)/){ # Check if it's a SA cell number $headers{Subject} =~ s/^0/27/; # and prepend the 27 to the front }</p><p></p><p>if($headers{Subject} eq ''){</p><p> die "Subject line is empty. Exiting!\n"; # You might wanna call it quits if there is no number }</p><p></p><p>my $msg = $mailobj->body(); # Put the body into a variable $msg = substr($msg, 0, 160); # Just grab the first 160 characters # Here follows all the Clickatell API stuff.</p><p># Don't worry about this too much, you can read about it at www.clickatell.com my $catell = Net::SMS::Clickatell->new( API_ID => $API_CODE, UseSSL => 0, BaseURL => $URL ); $catell->auth( USER => $USERNAME, PASSWD => $PASSWORD );</p><p>$catell->sendmsg( TO => $headers{Subject} , MSG => $msg);</p><p></p><p>if(my $error = $catell->error){</p><p> if($error == 1) {</p><p> die("Clickatell Username or password not defined\n");</p><p> }elsif($error == 2) {</p><p> die("Clickatell Username or password invalid\n");</p><p> } else {</p><p> die("Clickatell: Unexpected fault\n");</p><p> }</p><p>}</p><p></p><p># Keep a log, you may need it later.</p><p>open(FH,">>$logfile") || die "ERROR: $!\n";</p><p>print FH $headers{From} . ' ' . $headers{Subject} . ' ' . $msg . "\n";</p><p>close(FH);</p><p></p><p>Cheers</p><p></p><p>~uppal</p><p>p.s. got it from the way back machine at archive.org</p><p>Alvaro Cornejo wrote:<p style="margin-left: 20px">Hi</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">Does anyone has this script ? and some instructions on how to use it?</p> <p style="margin-left: 20px">I've been googling arround and it is not available anymore on the web</p> <p style="margin-left: 20px">www.easitext.com in not longer available... as far as I could found</p> <p style="margin-left: 20px">... well NOT found <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";-)" title="Wink ;-)" loading="lazy" data-shortname=";-)" /></p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">Regards</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">Alvaro</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px"></p></blockquote><p></p>
[QUOTE="dumasrc, post: 6738664, member: 242705"] Hi There, Here you Go, #!/usr/bin/perl # Scipt: email2sms.pl # Author: Lee Engel, [EMAIL PROTECTED] # Date: 14-03-2006 use Email::Simple; use Net::SMS::Clickatell; my $logfile = "/usr/local/smsc/incoming.log"; # The log file my $raw_mail; my %headers = (); my $API_CODE = '123456'; # You'll get this when you sign up my $URL = ''; # If you wanna send it somewhere else... my $USERNAME = 'easitext'; # Your Clickatell username my $PASSWORD = 'very_secret_password'; # ...and the password while(<>){ $raw_mail .= $_; } # Put the entire mail into a variable my $mailobj = Email::Simple->new($raw_mail); $headers{Subject} = $mailobj->header("Subject"); # Get the number from the subject line $headers{From} = $mailobj->header("From"); # Get the senders address for logging $headers{Subject} =~ s/[^\d]//g; # Strip away non-digits $headers{Subject} =~ s/\s//g; # Strip away whitespace if($headers{Subject} =~ /^0(8|7)(2|3|4|6|9)/){ # Check if it's a SA cell number $headers{Subject} =~ s/^0/27/; # and prepend the 27 to the front } if($headers{Subject} eq ''){ die "Subject line is empty. Exiting!\n"; # You might wanna call it quits if there is no number } my $msg = $mailobj->body(); # Put the body into a variable $msg = substr($msg, 0, 160); # Just grab the first 160 characters # Here follows all the Clickatell API stuff. # Don't worry about this too much, you can read about it at www.clickatell.com my $catell = Net::SMS::Clickatell->new( API_ID => $API_CODE, UseSSL => 0, BaseURL => $URL ); $catell->auth( USER => $USERNAME, PASSWD => $PASSWORD ); $catell->sendmsg( TO => $headers{Subject} , MSG => $msg); if(my $error = $catell->error){ if($error == 1) { die("Clickatell Username or password not defined\n"); }elsif($error == 2) { die("Clickatell Username or password invalid\n"); } else { die("Clickatell: Unexpected fault\n"); } } # Keep a log, you may need it later. open(FH,">>$logfile") || die "ERROR: $!\n"; print FH $headers{From} . ' ' . $headers{Subject} . ' ' . $msg . "\n"; close(FH); Cheers ~uppal p.s. got it from the way back machine at archive.org Alvaro Cornejo wrote:[INDENT]Hi Does anyone has this script ? and some instructions on how to use it? I've been googling arround and it is not available anymore on the web www.easitext.com in not longer available... as far as I could found ... well NOT found ;-) Regards Alvaro [/INDENT] [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom