|
-
May 20th, 2004, 03:43 PM
#1
Thread Starter
Lively Member
How can I Send an E-Mail with Windows CE .NET?
Hi,
I have written an application for windows .NET 2003. This application can send E-mail by using SMTP. My application works very well. But I wanted to transfer same application to Windows CE .NET and had a problem. Now, I am using CE. NET Emulator.
When I run the application, it gives me an error, and cannot load the servicecontroller. Do you think I have to install SMTP Service for CE .NET.
Here is my code:
Imports System.Web.Mail
Imports System.Text
Imports System.ServiceProcess
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim services() As ServiceController = ServiceController.GetServices
Dim service As ServiceController
Dim blnHasSmtpService As Boolean = False
' Loop through all the services on the machine and find the SMTP Service.
For Each service In services
If service.ServiceName.ToLower = "smtpsvc" Then
blnHasSmtpService = True
Exit For
End If
Next
end sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|