Search code examples
c#.netasp.netemailmailing

.Net Mail Duplicates


I am facing a weird problem in production, not happening in Local machine.

I hosted an application in godaddy that has a aspx page where it collects the email addresses from the text fields (txtTOEmail,txtCCEmail, txtBCCEmail).

When I call the send method on the mail object, the mail is sent twice. But this is not happening in my local machine.

NOTE : In my local machine I am using GMAIL smtp. In prod I am using Godaddy SMTP.

Any ideas and advices are welcomed.


Solution

  • Can you show the code that is sending the email? It is possible that GMail is consolidating two of the same address into one email instead of sending it twice.