Hello,
I am working on a Windows application in .NET 2.0 that will send
emails. I have removed my account from the administrator group to put
it in the user group. When I run my application and try to send an
email, I get a time out exception. When I run my application as an
administrator, the email is sent without any problem. It seems that a
permission issue is at play here. I have looked around but found
nothing about that issue. Does anyone have any idea about what is
exactly going on? I could use any advice.
Thank you in advance. 3 1266
See if it is answered here: http://systemwebmail.com/
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers: http://www.mztools.com
"leanerOfThat" <on********@gmail.com> escribió en el mensaje
news:11**********************@g49g2000cwa.googlegr oups.com... Hello, I am working on a Windows application in .NET 2.0 that will send emails. I have removed my account from the administrator group to put it in the user group. When I run my application and try to send an email, I get a time out exception. When I run my application as an administrator, the email is sent without any problem. It seems that a permission issue is at play here. I have looked around but found nothing about that issue. Does anyone have any idea about what is exactly going on? I could use any advice. Thank you in advance.
Hola Carlos,
I am using .NET 2.0 so the class is actually
System.Net.Mail.SmtpClient. I can use a System.Net.NetworkCredential
set to an account with higher privileges and the mail will go through.
For example, if my account has the provileges of a simple user account
and I set the property UseDefaultCredentials to true, the SmtpClient
times out. If I run the application as an administrator, the email goes
through. If in my code I create a NetworkCredential object with the
login and password of my simple user the email will go through.
The problem I have is that I do not know any user in the target network
so I cannot create a NetworkCredential object. I should use the
UseDefaultCredentials = true...But it does not work with simple user.
I do not want an administrative account only situation for my
application as this is less than proper I think.
So...Did I miss something or there is no other way beside getting a
privileged account?
Thanks,
Pierre
Not sure about .NET 2.0, but with .NET 1.1 I think to remember that I have
sent e-mails with a non-admin account on my laptop at home (at office I am
admin user)...
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers: http://www.mztools.com
"leanerOfThat" <on********@gmail.com> escribió en el mensaje
news:11*********************@g44g2000cwa.googlegro ups.com... Hola Carlos, I am using .NET 2.0 so the class is actually System.Net.Mail.SmtpClient. I can use a System.Net.NetworkCredential set to an account with higher privileges and the mail will go through.
For example, if my account has the provileges of a simple user account and I set the property UseDefaultCredentials to true, the SmtpClient times out. If I run the application as an administrator, the email goes through. If in my code I create a NetworkCredential object with the login and password of my simple user the email will go through.
The problem I have is that I do not know any user in the target network so I cannot create a NetworkCredential object. I should use the UseDefaultCredentials = true...But it does not work with simple user. I do not want an administrative account only situation for my application as this is less than proper I think.
So...Did I miss something or there is no other way beside getting a privileged account?
Thanks, Pierre This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nick Z. |
last post by:
I am trying to connect to my SMTP server using the SmtpClient class.
For some reason its refusing to work. Here is the code and the error I get.
...
|
by: hazz |
last post by:
smtpClient.Send(message)
is causing me problems as per specifics in the trace below. Email is sent
but not without this error typically upon sending the second email, but
sometimes when running...
|
by: David Thole |
last post by:
Hey all,
I'm still very new at all this, but am going through the ASP.net 2.0
unleashed book, first chapter and trying to program my own little form
emailer for fun. I tried following the code...
|
by: howardr101 |
last post by:
Hi,
Have hunted around on the groups and can't find anything, hence.
I've tried this against 2 mail servers (mailtraq and hmailserver) and
it occus with both.
The problems seems to be that...
|
by: |
last post by:
Hi all,
We are using the Asp.Net SMTP Client to send email via our Exchange 2003 SP2
Server. When trying to send email to a local recipient I am getting the
following error:-
Server:...
|
by: =?Utf-8?B?VG9yc3Rlbg==?= |
last post by:
Hi,
I have a problem sending mails with the SmtpClient class. It's strange -
after I boot the pc and start the program I can send mails many times. After
I close the program and start it again...
|
by: Claire |
last post by:
I'm a noob at emailing from code and I need to add email capabilities to my
application.
The following code completes without exceptions but I'm not receiving any
test emails.
How do you debug...
|
by: Rob Dob |
last post by:
The following code is giving me a timeout problem., no matter what I do I
can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port
465 and using ssl, if however I try using...
|
by: btcoder |
last post by:
Hi, my jsp page uses sun.net.smtp.SmtpClient to send email. It worked fine until the hosted location was moved to another server. Now it generates the sun.net.smtp.SmtpProtocolException and the...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
| |