Results 1 to 6 of 6

Thread: [RESOLVED] Mail problem

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Resolved [RESOLVED] Mail problem

    Hello everybody,

    I had an ASP.NET 1.1 app running on Windows 2003 server perfectly. I migrated the application to a Windows 2008 R2 server and now the email function doesn't work. SMTP Server is running on the Win 2008 machine but still my ASP.NET application doesn't send out emails.

    Any idea?

    Thanks.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Mail problem

    Hey,

    ASP.Net 1.1 would have used System.Web.Mail namespace, which is now deprecated. It assumed that there was a local SMTP Server available on the local machine. Is this still the case on your new server?

    Gary

  3. #3

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Mail problem

    I have a local smtp server installed on the server, but how do I send email to that server when System.Web.Mail.SmtpMail is no longer used?

    Thanks.

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Mail problem

    Given that you are still using 1.1, it is still in there. But in other versions of .Net, i.e. 2.0, etc, it has been deprecated.

    Is there any logging in the SMTP Server? Can you see the email getting into the message queue?

    Do you have any logging in your application?

    Gary

  5. #5

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Mail problem

    It was my mistake, I couldn't even relay using command prompt. When I was able to send emails with command prompt, my app also started working.

    Thanks.

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Mail problem

    Glad to hear that you got it working!!

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width