Hello!
I had problem sending mails through asp.net, even after writing the code.
But after providing the IP address of my pc in the relay option in IIS, the problem finally got solved.
But now the problem is that the same code when I tried to run on a pc which was a local server, I still face the problem.
I write the follwing code
dim mm as new mailmessage
mm.to="rasvinder.soodan@gmail.com"
mm.from="rasvinder.soodan@gmail.com"
mm.subject="hello"
mm.body="hello"
mm.priority=priority.high
smtpmail.smtpserver="theip addrss of the local machine"
smtpmail.send(mm)
The above code runs succesfully on one pc, which is a normal client pc, but when run on a server machine, mail are not sent.
Can u plz help me out?
Thanks