none
Help sending SMS message using OneSixtybyTwosite RRS feed

  • Question

  • 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);
    }

    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

    • Moved by CoolDadTx Monday, June 11, 2018 1:54 PM Third party product
    Sunday, June 10, 2018 6:03 PM

All replies

  • Hi Manoj Gokhale,

    Thank you for posting here.

    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.

    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 Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 11, 2018 6:37 AM