.Net form sends 2 copies

Discussion in 'ASP.NET 2.0' started by JoeS, Sep 14, 2008.

  1. Looking for any help here from the experts.

    I have a several forms on a website, they submit fine, the problem is the client gets 2 copies. One can see how this would get annoying real quick. I have not found a solution via Google, others seem to have the same problems. Can anyone here share the code they use, that doesn't send 2 submissions everytime?

    System.Net.Mail.SmtpClient and System.Net.Mail.MailMessage namespace and system.web.mail namespace have been tried.

    For smtp, localhost, 127.0.0.1, they all produce the same result.

    Anyone else have this issue, or know how to fix it?
     
  2. It sounds like you are passing a To and CC address. There is no way a smtp service can automatically send two copies of the same email unless you are passing the email address twice. I suggest you create a simple we application and hard code in the email address. Don't pass and variables and see what happens.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    Also check the message header, check the message ID. If it is different, then your code actually dropped 2 copies.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page