MM4

在通过MM4提交消息之前,必须为VASP(增值服务提供商)帐户定义一个 Now 短信& 彩信Gateway。此帐户是在 “MMSC VASP”配置对话框。

要发布到 NowSMS 骨髓间充质干细胞 via MM4, your application is making an SMTP connection to the 骨髓间充质干细胞, and you would connect to the “SMTP Port Number”在“MMSC”配置对话框。

要通过MM4提交消息,VASP必须使用以下命令通过SMTP进行身份验证:“AUTH LOGIN”方式,或类似于MM7的方式,可以使用IP地址作为“Account Name”,在这种情况下,来自该IP的任何连接都将被视为来自该VASP帐户的连接。

“AUTH LOGIN” is rather simple. Basically, as part of the SMTP dialog, after the initial HELO or EHLO command, the SMTP client needs to issue the command 身份登录. The SMTP server responds with a “300”系列代码和提示输入帐户名称(代码后的提示是BASE64编码的字符串)。客户端将帐户名作为BASE64编码的字符串发送。 SMTP服务器响应另一个“300”系列代码提示输入密码,客户端以BASE64编码字符串的形式响应密码。一种“200”系列响应表明已接受身份验证,“500”系列响应表明不是。

然后,SMTP对话框会照常继续,通常会出现一个“MAIL FROM:”来自客户端的命令,指示消息的发送地址,后跟一个或多个“RCPT TO:”命令以指示邮件的收件人。请注意,NowSMS期望“RCPT TO:”地址格式为phonenumber@domain.name或phonenumber/TYPE=PLMN@domain.name,其中“domain.name” is the “MMS电子邮件的域名” configured on the “MMSC”配置对话框。 (“本地主机名或IP地址” value is also acceptable here.) If the domain name is not present, the 骨髓间充质干细胞 will reject the recipient. As special support for Multimedia WAP Push, the following address formats are also supported to specify Multimedia WAP Push to be used for sending to the phone number: phonenumber.wappush@domain.name or phonenumber/TYPE=WAPP@domain.name.

然后,实际的MMS消息将通过“DATA”命令。通常,MMS消息将是具有多个内容部分的多部分MIME消息,尽管NowSMS也将接受仅包含单个部分的消息。

MM4 / SMTP对话框如下所示:

该对话框如下所示(IN表示来自服务器,OUT表示来自客户端):

IN: 220 SMTP Ready
OUT: HELO client.name (or EHLO client.name)
IN: 250 OK (or a multiline response if EHLO was used)
OUT: 身份登录
IN: 334 VXNlcm5hbWU6
(NOTE: "Username:" BASE64 encoded)
OUT: dGVzdA==
(NOTE: "test" BASE64 encoded)
IN: 334 UGFzc3dvcmQ6
(NOTE: "Password:" BASE64 encoded)
OUT: dGVzdA==
(NOTE: "test" BASE64 encoded)
IN: 235 Ok
OUT: 邮件来自: <+447779998888/TYPE=PLMN@mms.oper.com>
IN: 250 Ok
OUT: RCPT至: <+447778889999/TYPE=PLMN@mms.domain.com>
IN: 250 Ok
OUT: 数据
IN: 354 Ok, end with "." on a new line...
OUT: (Transmit MIME encoded message, then end with a line with only the . character)
IN: 250 Message Accepted
OUT: QUIT

使用上一节中MM7消息中的示例数据,MIME编码的消息将类似于以下内容:

X-Mms-3GPP-MMS-Version: 5.9.0 
X-Mms-Message-Type: MM4_forward.REQ 
X-Mms-Transaction-ID: "60755231.94578772@mmsc" 
X-Mms-Message-ID: "148478240@mmsc.hub" 
X-Mms-Ack-Request: Yes 
X-Mms-Originator-System: system-user@mmsc.hub 
Message-ID: <60755231.94578772@mmsc> 
Date: Tue, 8 May 2007 12:18:32 +0300 
To: +447778889999/TYPE=PLMN@mms.domain.com
From: +447779998888/TYPE=PLMN@mms.oper.com
Subject: News for today
Content-Type: multipart/mixed; boundary="StoryParts-74526-8432-2002-77645"
Content-ID:<SaturnPics-01020930@news.tnn.com>

--StoryParts-74526-8432-2002-77645
Content-Type: text/plain; charset="utf-8"

Science news, new Saturn pictures...
--StoryParts-74526-8432-2002-77645
Content-Type: image/gif
Content-ID:<saturn.gif>
Content-Transfer-Encoding: base64

R0lGODdhZAAwAOMAAAAAAIGJjGltcDE0OOfWo6Ochbi1n1pmcbGojpKbnP/lpW54fBMTE1RYXEFO
...
--StoryParts-74526-8432-2002-77645--