You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Sprintf("The SMS message which you sent to %s has expired at %s and you will need to resend this message.", owner, user.UserTimeString(time.Now())),
33
+
},
34
+
Dictionary: []hermes.Entry{
35
+
{"ID", messageID.String()},
36
+
{"From", owner},
37
+
{"To", contact},
38
+
{"Message", content},
39
+
},
40
+
Actions: []hermes.Action{
41
+
{
42
+
Instructions: "Messages expire because we couldn't connect with your mobile phone to send the outgoing SMS. You can fix this by making sure your phone is connected to the internet and also connect your phone to the charger all the time since Android may kill the httpSMS app if it has been active for a very long time so save phone battery.",
43
+
Button: hermes.Button{
44
+
Color: "#329ef4",
45
+
TextColor: "#FFFFFF",
46
+
Text: "View Messages",
47
+
Link: "https://httpsms.com/threads",
48
+
},
49
+
},
50
+
},
51
+
Signature: "Cheers",
52
+
Outros: []string{
53
+
fmt.Sprintf("Don't hesitate to contact us by replying to this email."),
54
+
},
55
+
},
56
+
}
57
+
58
+
html, err:=factory.generator.GenerateHTML(email)
59
+
iferr!=nil {
60
+
returnnil, stacktrace.Propagate(err, "cannot generate html email")
fmt.Sprintf("The SMS message which you sent to %s has failed at %s and you will need to resend this message.", owner, user.UserTimeString(time.Now())),
82
+
},
83
+
Dictionary: []hermes.Entry{
84
+
{"ID", messageID.String()},
85
+
{"From", owner},
86
+
{"To", contact},
87
+
{"Message", content},
88
+
{"Failure Reason", reason},
89
+
},
90
+
Actions: []hermes.Action{
91
+
{
92
+
Instructions: "Check the default SMS messaging app on your phone to find out the exact reason why the message failed. Usually messages fail because the httpSMS app phone has been un-installed or it is not active. Logout and login again on the mobile app on your Android phone and retry sending the SMS.",
93
+
Button: hermes.Button{
94
+
Color: "#329ef4",
95
+
TextColor: "#FFFFFF",
96
+
Text: "View Messages",
97
+
Link: "https://httpsms.com/threads",
98
+
},
99
+
},
100
+
},
101
+
Signature: "Cheers",
102
+
Outros: []string{
103
+
fmt.Sprintf("Don't hesitate to contact us by replying to this email."),
104
+
},
105
+
},
106
+
}
107
+
108
+
html, err:=factory.generator.GenerateHTML(email)
109
+
iferr!=nil {
110
+
returnnil, stacktrace.Propagate(err, "cannot generate html email")
msg:=fmt.Sprintf("cannot send email for user with ID [%s] for [%s] message with ID [%s]", payload.UserID, events.EventTypeMessageSendFailed, payload.ID)
0 commit comments