问题描述
你好
我写过以下代码,通过OneSixtybyTwo网站发送短信,但是短信无法进入<
尝试
{
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; OneSixtybyTwo o160 =新OneSixtybyTwo(LoginIDofOneSixtybyTwosite,passwordofOneSixtybyTwosite);
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; o160.Login();
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; o160.SendSms(MobileNumberofsmstobesend,Messagetobesent);
Hello
I have written the following code to send an SMS through OneSixtybyTwo site but the sms fails to go
try
{
OneSixtybyTwo o160 = new OneSixtybyTwo(LoginIDofOneSixtybyTwosite, passwordofOneSixtybyTwosite);
o160.Login();
o160.SendSms(MobileNumberofsmstobesend, Messagetobesent);
}
catch(exception ex)
{
MessageBox.Show(ex.Message);
}
我收到错误消息"Login denied"zh。
1. LoginIDofOneSixtybyTwosite / passwordofOneSixtybyTwosite -
是正确的。
2.
A. 我已经包含了以下DLL 在我的项目中
- CsQuery
- Nitin.Sms.Api
- SmsClient
- SMSClassLibrary
B. 添加了对上述DLL的引用
C. 指定以下使用语句
使用System;
使用System.ComponentModel ; $
使用System.Data;
使用System.Data.SqlClient;
使用System.Windows.Forms;
使用SmsClient;
使用System.Net;
使用System .Net.Mail;
使用WhatsAppApi;
使用Nitin.Sms.Api;
使用System.Text.RegularExpressions;
3. 我已登录passwordofOneSixtybyTwosite网站使用上述==> LoginIDofpasswordofOneSixtybyTwositesite / passwordofpasswordofOneSixtybyTwositesite
我已成功登录并发送上述 测试消息 - 消息发送 - 以上手机号码=> MobileNumberofsmstobesend
$
请帮我解决这个问题,并提前感谢你
问候价
Manoj Gokhale
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
I get the error message "Login denied"
1. LoginIDofOneSixtybyTwosite/ passwordofOneSixtybyTwosite -are correct
2.
A. I have included the following DLLs in my project
- CsQuery
- Nitin.Sms.Api
- SmsClient
- SMSClassLibrary
B. Added references to the above DLLs
C. specified the following using statements
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Windows.Forms;
using SmsClient;
using System.Net;
using System.Net.Mail;
using WhatsAppApi;
using Nitin.Sms.Api;
using System.Text.RegularExpressions;
3. I have logged in to the passwordofOneSixtybyTwosite site using the above ==> LoginIDofpasswordofOneSixtybyTwositesite / passwordofpasswordofOneSixtybyTwositesite
I have been able to successfully Login and send the above test message - Messagetobesent - to the above mobile number => MobileNumberofsmstobesend
Please help me to solve this problem and thanking you in advance
regards
Manoj Gokhale
推荐答案
感谢您在此处发帖。
根据您的错误,当您创建时
帐户,您是否更改了密码?请记住,在您更改第一个密码之前发送短信不会有效。
According to your error, when you create the account, have you change the password? Please remember, sending SMS will not work until you change first password.
这是一个类似的主题,关于使用OneSixtybyTwo从ASP.Net发送短信到手机,供您参考。
Here is a similar thread about Send SMS From ASP.Net To Mobile using OneSixtybyTwo for your reference.
https://forums.asp.net/t/2116758.aspx?Send+SMS+From+ASP+Net+To+Mobile
Best问候,
Wendy
这篇关于帮助使用OneSixtybyTwosite发送SMS消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!