email2sms

来自「GSM猫管理程序」· 代码 · 共 36 行

TXT
36
字号
#!/bin/sh# Smsd can send eMails via SMS. You simply need to store the eMail as text# file in the outgoing queue directory with a unique filename.# The eMail must include the phone number in the To: field, for example:# To: "Herbert +491721234567" <sms@localhost># This simple script creates a unique filename and copies the eMail from# stdin to that file.# If you use procmail to deliver local eMail. Create the user sms and create# the file /home/sms/.procmailrc with this content:# VERBOSE=off# MAILDIR=/var/spool/mail# DEFAULT=/var/spool/mail/sms# LOGFILE=/var/log/procmail# # :0# * ^TOsms# | /usr/local/bin/email2sms# If you use QMail and vpopmail you need the file# /home/vpopmail/domains/your-domain/.qmail-sms with this content:# | /usr/local/bin/email2smsOUTFILE=$(mktemp /var/spool/sms/outgoing/smsgw.out.XXXXXX)cat >$OUTFILEecho "SMS queued to $OUTFILE"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?