Pizu has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have created a mail server using postfix and created the catchall address. - so far so good.
Am looking for something that reads the below..
1) From Address(s) - Needed to verify the sender to continue in the script next steps..
2) Original To Address(s) - Example: 11111111@domain.com;22222222@domain.com
Checks to be done on point 2, need to confirm that the To address contains 8 numbers @domain.com
If the above is matched..
I need remove the @domain.com and the number into a temp $mobilvariable and the subject into another $textvariable.
Then I can GET an HTTP request
something like:
my $url="http://x.x.x.x:14013/cgi-bin/sendsms?username=xxx&password=xxx&to=$mobilvariable&from=mail2sms&text=$textvariable";
my $request = new HTTP::Request('GET', $url);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mail2sms for Kannel
by hippo (Archbishop) on Nov 10, 2017 at 09:51 UTC | |
by Pizu (Novice) on Nov 10, 2017 at 09:53 UTC | |
|
Re: mail2sms for Kannel
by Discipulus (Canon) on Nov 10, 2017 at 09:54 UTC | |
|
Re: mail2sms for Kannel
by haukex (Archbishop) on Nov 10, 2017 at 09:54 UTC | |
by Pizu (Novice) on Nov 18, 2017 at 13:48 UTC | |
by afoken (Chancellor) on Nov 18, 2017 at 15:43 UTC | |
by Pizu (Novice) on Nov 22, 2017 at 08:26 UTC | |
by hippo (Archbishop) on Nov 22, 2017 at 11:12 UTC | |
|
Re: mail2sms for Kannel
by Pizu (Novice) on May 09, 2019 at 13:10 UTC |