Reputation: 362
I am working on a project in which i have to send mails to users etc. My mails are being successfully sent but i cannot see the mails in my account. I donot have any hosting website is it important to have any hosting website for getting mails in the account. I am currently using smtp4dev which shows me that my mail has been sent. Please help
Upvotes: 1
Views: 1044
Reputation: 99
mail.Headers.Add("Message-Id",String.Format("<{0}@{1}>", Guid.NewGuid().ToString(), "mail.example.com"));
I fixed this issue in C# with adding header in mail message.
Upvotes: 0
Reputation: 913
Here is a quote from the homepage of smtp4dev: (https://smtp4dev.codeplex.com/)
Project Description
Windows 7/Vista/XP/2003/2010 compatible dummy SMTP server. Sits in the system tray and does not deliver the received messages. The received messages can be quickly viewed, saved and the source/structure inspected. Useful for testing/debugging software that generates email.
That means it will not send emails. Dummy smtp servers comes in very handy while development but to see actual emails you need real ones.
Upvotes: 1