Configure SMTP in iis 5.1

已取消 已发布的 May 12, 2009 货到付款
已取消 货到付款

I am trying to send out email in .net application in a development box. It is XP Pro version 2002, with sp3, iis 5.1 and .net framework 2.0

The mails are unable to send out, they sit the C:\Inetpub\mailroot\Queue folder. Each time I run the script, the email goes to the Queue directory. I believe my code is correct. The SMTP server is configured and please see attachment. I don't think is the coding because it works in the live server. So I need someone walk me through confirguring my SMTP .

my code

Dim mail As New MailMessage()

'set the addresses

[login to view URL] = New MailAddress("contact@[login to view URL]")

[login to view URL] ="Email from us"

[login to view URL]("something@[login to view URL]")

dim emailstr as string

emailstr ="Thank you"

mail.body=emailstr

'send the message

Dim smtp As New SmtpClient("localhost")

[login to view URL](mail)

.NET Amazon Web Services ASP 虚拟助手 Visual Basic

项目ID: #3876246

关于项目

3个方案 远程项目 活跃的May 24, 2009

有3名威客正在参与此工作的竞标,均价$42/小时

crajeshbe

See private message.

$25.5 USD 在14天内
(32条评论)
5.2
kotish

See private message.

$14.45 USD 在14天内
(16条评论)
2.8
kseen

See private message.

$85 USD 在14天内
(12条评论)
2.5