Send email using asp.netdiscount smpt account

Discussion in 'ASP.NET / ASP.NET Core' started by chris1, Nov 25, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have a web service with a sendmail function i have written. This works perfectly when i use an external ISP smtp account but if i use my asp.netdiscount smtp account, i get a 'failure sending mail' exception. I contacted tech support who said i should use 'localhost' as the server and dont provide login/password.

    In my code i disable the credentials part, (im just using .net classes) but the sendmail command still produces
    the error message above. It seems as if it needs a login/password mandatory.

    As i say, if i use a smtp account with a login/password all is fine.

    Technical support cant help any further and suggested i post this.

    Many thanks for any help

    Chris Anderson
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Let me make sure i understand. Is the web service (the app that sends mail) housed on our web server or your own computer?


    What was the exact error message are you getting?





    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Bruce

    Thanks for your reply. Yes, its hosted on your system.

    The error is 'failure sending mail' which is an exception to the command .send using the .net mail stuff

    Thanks

    Chris
     
  4. Bruce

    Bruce DiscountASP.NET Staff

  5. Bruce,

    As mentioned in my first mail on this, i have set to localhost, it is on your servers
    and it still does not work

    I have already used the sample code you provide the link for

    Can you please try tpo replicate the problem

    Regards

    Chris Anderson



    if the app is on our server, setting the smtp host to "localhost" should fix the problem.


    See this sample code, http://kb.discountasp.net/article.aspx?id=10443




    Bruce
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    if this code doesn't work, i recommend creating a support ticket.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  7. Bruce

    Bruce DiscountASP.NET Staff

    i would create a ticket and tell support that the test code doesn't work.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  8. Bruce,

    Thanks for your reply

    I did that before i posted here. Tech support said they couldnt help further as it was a code issue (which i dont agree with as such)and suggested i post here !!

    full circle !!

    Are you in tech support ? i could create a new ticket if someone can help

    Chris Anderson
     
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