c# - Code Conversion from Classic ASP to ASP.NET -
my client have classic asp site on dedicated server on sends mail using iis (its working there).
set mail = server.createobject("persits.mailsender") mail.host = "localhost" ' specify valid smtp server mail.username = "mail@site.com" mail.password = "password" mail.from = "info@site.com" i tried converting asp.net this.
smtpclient smtp = new smtpclient(); smtp.host = "localhost"; smtp.port = 25; //smtp.enablessl = true; smtp.deliverymethod = smtpdeliverymethod.pickupdirectoryfromiis; smtp.usedefaultcredentials = false; smtp.credentials = new networkcredential("mail@site.com", "password"); smtp.send(message); but doesn't work. legacy app without error logger / monitoring , cannot debug code on online server.
what wrong code?
this seems permissions issue. check thread details.
Comments
Post a Comment