in reply to Unable to Send SMS

I cannot give you a full answer, but to me it looks that you manipulate the form's action:

$dest =~ s/<form name="loginForm"/<form action='..\/Login1.action' nam +e="loginForm"/ig;

which is later not recognized by the server:

Error POSTing http://wwwl.way2sms.com/Login1.action: Not Found at SMS. +pl line 48

Is such cases I would advise to study the webpages' source code again.