Hi all.
I have a peculiar request.
We have a mailing service which checks incoming mails against client emails in the database. If it finds a match, it stores the details of that email against that client.
Unfortunately, the users saved about 20 clients with an empty string for an email address. (We don't validate for it because of business requirements - the user is a financial adviser, and cannot get all the client's details up front.) The user noticed that spam emails are being linked to these clients.
Low and behold, when I checked the database, I found several mails where the from address was not available, only the senders name. I stepped through the code to see if there is any other possible why this could happen, and there isn't. The email details must've been received like that from the exchange server.
Fixing the Mailing service to not link these emails to those clients was simple enough. However, I am required to test my solution, and in order to do that, I need to find out how those spammers sends emails with no sender address. Does anyone here know how to do that?