473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Sending E-Mail from a Windows Service

I created at VB.NET application that sends e-mail via the
System.Web.Mail namespace. At the application level, the e-mails send
out fine.

When I created the application as a Windows service, the e-mails are
not sent out. I even made it where the service could interact with the
desktop.

Is sending e-mail from System.Web.Mail not possible via Windows
Services?

Thanks,
Jason Trout
js*******@cox-internet.com
Nov 20 '05 #1
3 1108

"Jason E. Trout" <ja***@accesseforms.com> wrote in message
news:24**************************@posting.google.c om...
I created at VB.NET application that sends e-mail via the
System.Web.Mail namespace. At the application level, the e-mails send
out fine.

When I created the application as a Windows service, the e-mails are
not sent out. I even made it where the service could interact with the
desktop.

Is sending e-mail from System.Web.Mail not possible via Windows
Services?


What account is the service running under? The LocalSystem account cannot
talk to other machines (although I believe there are some exceptions to
this, like anonymous pipes or something) and therefore if your SMTP server
is on another machine in the network, there's your problem. If that's the
case, simply have your service run under a user account.
Nov 20 '05 #2
Definately possible. I had a service that did that, but it was running
directly on my IIS server.

Greg

"Jason E. Trout" <ja***@accesseforms.com> wrote in message
news:24**************************@posting.google.c om...
I created at VB.NET application that sends e-mail via the
System.Web.Mail namespace. At the application level, the e-mails send
out fine.

When I created the application as a Windows service, the e-mails are
not sent out. I even made it where the service could interact with the
desktop.

Is sending e-mail from System.Web.Mail not possible via Windows
Services?

Thanks,
Jason Trout
js*******@cox-internet.com

Nov 20 '05 #3
Thanks for your response, but it seems that no configuration has
worked. I've installed the service as LocalSystem, LocalService,
NetworkService, and User (with administrator privileges.

It won't send out e-mail through the SMTP server. I am sending to a
remote address, but I'm also utilizing the WININET API to connect to
an ftp server, so it doesn't neccessarily seem that the service can't
access these outside network services.

Any suggestions? I appreciate it.
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Lamonby | last post by:
Hi, I am sending a file from the server as an email attachment. The file is being attached no problem and sending the email, but I get an error when I try to open it saying it is corrupt....
1
by: coder_1024 | last post by:
I'm trying to send a packet of binary data to a UDP server. If I send a text string, it works fine. If I attempt to send binary data, it sends a UDP packet with 0 bytes of data (just the...
1
by: Tim Black | last post by:
My application requires sending a large piece (~2MB) of data to several devices on a network via TCP sockets. I have experimented with different methods for doing this and this has raised some...
2
by: Joe | last post by:
Hi, I am sending an email from an asp page. Besides sending an email to sender, I am sending myself a BCC also. Out of 100 emails sent, about 5 recipients received a blank email (no text in...
3
by: Robert A. van Ginkel | last post by:
Hello Fellow Developer, I use the System.Net.Sockets to send/receive data (no tcpclient/tcplistener), I made a receivethread in my wrapper, the receivethread loops/sleeps while waiting for data...
4
by: yaron | last post by:
Hi, I have a problem when sending data over TCP socket from c# client to java server. the connection established ok, but i can't send data from c# client to java server. it's work ok with...
9
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim...
0
by: remya1000 | last post by:
by using FTP i can send files to server using vb.net. if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by...
10
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area>...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.