How to create Email Account programatically with discountasp.net

Discussion in 'ASP.NET / ASP.NET Core' started by jagsdesh, Oct 27, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. This is what I want to do:

    User registers as new user on our website.
    I want to create an Email Account when the user registers. (eg: [email protected])
    I have the website hosted on discountasp.net

    I have not done any programming on email account creation on Exchange Server.

    If we can do it, what are the details (mail server names and other info)I have to get from discountasp.net?

    Has anybody accomplished on discountasp.net?

    Any help would be greatly appreciated.

    Thanks in advance

    Jags
     
  2. I found this.

    It will be useful to others too.
    If you are using DASP and SamrterMail, you can use the webservices provided by SamrterMail

    To access the webservice:
    http://webmail.yourdomain.com/Services/svcUserAdmin.asmx

    and it gives you all methods to add/edit/delete email accounts

    Cool

    jags
     
  3. Not sure if this is complete possible on our system.

    Try referencing this link https://api.discountasp.net/1.0/customerapi.asmx?op=EmailPopAdd

    This is our open API program that will allow our customers to programmatically access some of the feature on our system. This API will allow you to create pop accounts. There is a restriction on this however, I believe there is a limited amount of times you can call the API on a 24 hour basis.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     
  4. Bruce

    Bruce DiscountASP.NET Staff

  5. mjp

    mjp

     
  6. Thanks a lot


    I did try out the API and it works after my IP address is put in the whitelist.


    Enlighten me please on these questions:


    When a client is logging into the website and registering, I need to create a mailbox.
    I can put the API 'key' string into the code. But I dont know the IP address of the user.


    Will it still work?


    Thanks
     
  7. Bruce

    Bruce DiscountASP.NET Staff

    You don't need to IP of the user but rather the calling IP address (ie. the server IP address).


    Contact support for the server outbound IP.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  8. Thanks for the info.

    I tested this locally
    To access the webservice:
    http://webmail.yourdomain.com/Services/svcUserAdmin.asmx
    It works fine.
    I am in uploading the DB onto the server and do some live testing.

    In your own API I observer you have these 2

    [*]EmailPopAdd
    Adds a Pop account.

    [*]SMAddUser
    Adds a SmarterMail user.


    Does it make any difference if we use one instead of the other?


    What is the Key in your API?


    Thanks again
     
  9. No it will not matter whether you use either one or both of the API methods.

    If you have not already done so, sign up for the API account inside your discountasp control panel under Control Panel API and you will be given API key in your control panel.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page