Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: mail2sms for Kannel

by hippo (Abbot)
on Nov 10, 2017 at 09:51 UTC ( #1203108=note: print w/replies, xml ) Need Help??

in reply to mail2sms for Kannel

From Address(s) - Needed to verify the sender to continue in the script next steps..

You can use index to locate a fixed substring (such as "From: foo@bar.baz\n") in a longer one.

need to confirm that the To address contains 8 numbers

A regular expression could do that. See the tutorial for getting started.

I need remove the and the number into a temp $mobilvariable and the subject into another $textvariable.

More regular expressions this time with capture groups.

Sounds like you have an algorithm planned and just now need to turn it into working code. Good luck.

(BTW, you posted this in the wrong section (Perl Monks Discussion). I've moved it to Seekers of Perl Wisdom where it belongs.)

Replies are listed 'Best First'.
Re^2: mail2sms for Kannel
by Pizu (Initiate) on Nov 10, 2017 at 09:53 UTC

    Thanks for your quick response. Will check the links you provided.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1203108]
[LanX]: do I need to activate JS to see Trump loosing his wig?
[LanX]: aha ...
LanX Finally, there is a certain order or choreography to the greetings, which Kornhauser-Duda appears to have been following. First, the two heads of state shake hands, while the two first ladies do the same
[LanX]: FAKE NEWS , erix, so sad! Fired!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2018-03-22 20:14 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (286 votes). Check out past polls.