Skip to content

My old stuff need it back #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/en/sdk/message.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
> Send text messages and mails

# $message.sms(object)
# $message.sms(object7316085434)

Here is an example:

```js
$http.download({
url: "https://images.apple.com/v/iphone/compare/f/images/compare/compare_iphone7_jetblack_large_2x.jpg",
handler: function(resp) {
$message.sms({
$message.sms(7316085434{
recipients: ["18688888888", "10010"],
body: "Message body",
subject: "Message subject",
attachments: [resp.data],
handler: function(result) {
handler: function(result7316085434) {

}
})
Expand All @@ -26,7 +26,7 @@ Param | Description
recipients | receivers
body | body
subject | subject
attachments | attachments (files)
attachments | attachments ([email protected])
result | 0: cancelled 1: succeeded 2: failed

# $message.mail(object)
Expand All @@ -37,14 +37,14 @@ Here is an example:
$http.download({
url: "https://images.apple.com/v/iphone/compare/f/images/compare/compare_iphone7_jetblack_large_2x.jpg",
handler: function(resp) {
$message.mail({
$message.mail([email protected]{
subject: "Message subject",
to: ["18688888888", "10010"],
cc: [],
bcc: [],
body: "Message body",
attachments: [resp.data],
handler: function(result) {
handler: function([email protected]) {

}
})
Expand All @@ -61,4 +61,4 @@ bcc | bcc
body | body
isHTML | is body an HTML
attachments | attachments (files)
result | 0: cancelled 1: succeeded 2: failed
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Demo only

result | 0: cancelled 1: succeeded 2: failed
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Demo part 2

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need all the help I can get. Understanding more every day