作者QBQC (全家打工吹冷氣)
看板Visual_Basic
標題[vb.NET]急!!求救!! 為什麼不能跑呢??
時間Fri Dec 16 22:26:31 2005
請幫我看一下那個怎麼辦!!!!
謝謝!!
程式碼如下:要怎麼處理呢!!!我是小小初學者
Dim Message As System.Web.Mail.MailMessage =
New System.Web.Mail.MailMessage()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message.To = args(0)
Message.From = args(1)
Message.Subject = args(2)
Message.Body = args(3)
Try
SmtpMail.SmtpServer = "your mail server name goes here"
~~~~~~~~~~~~~~~~~~~~
SmtpMail.Send(Message)
Catch ehttp As System.Web.HttpException
Console.WriteLine("0", ehttp.Message)
Console.WriteLine("Here is the full error message")
Console.Write("0", ehttp.ToString())
End Try
Catch e As IndexOutOfRangeException
' Display usage instructions if error in arguments.
Dim use As usage = New usage()
~~~~~
use.DisplayUsage()
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.142.31.20