字母数字发件人 ID
运营商网络能力:完全支持
注册要求:无需预先注册
发件人 ID 保存:是,发件人 ID 在所有主要网络中均会保存
字符限制:最多 11 个字符,仅限字母数字
长代码
国内与国际:
- 国内:全力支持
- 国际:不支持发起
发件人ID保存:
-
国内:是
- 国际:否,用本地格式替换
配置时间:国内号码需 1-2 个工作日 用例:
- 双向沟通
- 客户支持
- 事务性消息
- 注意:M2M(机器对机器)消息传递不支持国内长代码
短代码
支持:可通过主要运营商获得 配置时间:8-12 周 用例:埃及 whatsapp 数据
- 大规模营销活动
- 优质费率服务
- 双重身份验证
- 客户忠诚度计划
受限制的短信内容、行业和用例
限制行业:
- 赌博和投注(需要特殊许可)
- 成人内容(禁止)
- 加密货币(需要金融机构批准)
- 政治竞选(适用特殊规定)
受监管行业:
- 金融服务(必须遵守 FMA 指南)
- 医疗保健(受严格的隐私法规约束)
- 保险(需要特定免责声明)
内容过滤
运营商过滤规则:
- 来自未知域名的 URL 可能会被阻止 电话数据
- 包含与限制内容相关的某些关键字的邮件
- 向同一收件人发送多条相同的消息
避免过滤的最佳实践:
- 使用注册的 URL 缩短服务
- 避免过多的标点符号和特殊字符
- 保持一致的发送模式 为客户旅程的所有阶段创建内容
- 包含清晰的发件人身份信息
- 对敏感内容使用批准的模板
在奥地利发送短信的最佳做法
信息传递策略
- 尽可能将消息控制在 160 个字符以内
- 包含明确的号召性用语
- 使用收件人姓名或相关详细信息进行个性化
- 保持一致的品牌声音
- 使用 URL 缩短器进行跟踪并提高空间效率
发送频率和时间
- 每位收件人每月最多可发送 2-4 条消息
- 尊重奥地利营业时间(8:00-20:00)
- 了解奥地利节日和文化活动
- 间隔发送消息以避免收件人不知所措
本土化
- 主要语言:德语
- 考虑为国际受众提供双语信息(德语/英语)
- 使用正确的正式地址(“Sie”而不是“du”)
- 适应当地文化背景的内容
退出管理
- 24 小时内处理退出
- 维护集中退出数据库
- 通过短信确认退出状态
- 定期审核退出名单
- 培训员工了解退出程序
测试和监控
- 在所有奥地利主要运营商(A1、Magenta、Drei)上进行测试
- 监控承运商的运送费率
- 跟踪参与度指标
- 定期测试选择退出功能
- 记录并分析故障模式
奥地利的 SMS API 集成
Twilio
Twilio 提供了强大的 REST API,用于向奥地利号码发送短信。身份验证使用您的帐户 SID 和身份验证令牌。
import { Twilio } from 'twilio';
// Initialize Twilio client with your credentials
const client = new Twilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);
// Function to send SMS to Austrian number
async function sendSmsToAustria(
to: string,
message: string,
senderId: string
): Promise<void> {
try {
// Ensure number is in E.164 format for Austria (+43...)
const formattedNumber = to.startsWith('+43') ? to : `+43${to.replace(/^0/, '')}`;
const response = await client.messages.create({
body: message,
from: senderId, // Alphanumeric sender ID or Twilio number
to: formattedNumber,
// Optional parameters for delivery tracking
statusCallback: 'https://your-webhook.com/status',
});
console.log(`Message sent successfully! SID: ${response.sid}`);
} catch (error) {
console.error('Error sending message:', error);
throw error;
}
}
辛奇
Sinch 提供具有 JSON 负载支持的 REST API,用于奥地利短信传递。
import axios from 'axios';
class SinchSmsService {
private readonly baseUrl: string;
private readonly apiToken: string;
constructor(serviceId: string, apiToken: string) {
this.baseUrl = `https://sms.api.sinch.com/xms/v1/${serviceId}/batches`;
this.apiToken = apiToken;
}
async sendSms(to: string, message: string): Promise<void> {
try {
const response = await axios.post(
this.baseUrl,
{
from: 'YourBrand', // Alphanumeric sender ID
to: [to],
body: message,
delivery_report: 'summary'
},
{
headers: {
'Authorization': `Bearer ${this.apiToken}`,
'Content-Type': 'application/json'
}
}
);
console.log('Message sent:', response.data.id);
} catch (error) {
console.error('Sinch SMS error:', error);
throw error;
}
}
}
信息鸟
MessageBird 提供了一个简单的 API,用于向奥地利收件人发送短信。
import messagebird from 'messagebird';
class MessageBirdService {
private client: any;
constructor(apiKey: string) {
this.client = messagebird(apiKey);
}
sendSms(
to: string,
message: string,
originator: string
): Promise<any> {
return new Promise((resolve, reject) => {
this.client.messages.create({
originator, // Your sender ID
recipients: [to],
body: message,
datacoding: 'auto' // Automatic handling of special characters
}, (err: any, response: any) => {
if (err) {
reject(err);
} else {
resolve(response);
}
});
});
}
}
普利沃
Plivo 提供全面的短信 API,支持奥地利号码。
import plivo from 'plivo';
class PlivoSmsService {
private client: any;
constructor(authId: string, authToken: string) {
this.client = new plivo.Client(authId, authToken);
}
async sendSms(
to: string,
message: string,
senderId: string
): Promise<void> {
try {
const response = await this.client.messages.create({
src: senderId,
dst: to,
text: message,
// Optional parameters
url: 'https://your-webhook.com/status',
method: 'POST'
});
console.log('Message sent:', response.messageUuid[0]);
} catch (error) {
console.error('Plivo error:', error);
throw error;
}
}
}
API 速率限制和吞吐量
- Twilio:每个账户每秒 100 条消息
- Sinch:每秒 30 个请求
- MessageBird:每秒 60 条消息
- Plivo:每秒 50 条消息
大规模发送策略:
- 实现队列系统(Redis、RabbitMQ)
- 尽可能使用批处理 API
- 实施指数退避重试
- 监控吞吐量并进行相应调整。