473,418 Members | 2,133 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,418 software developers and data experts.

Sending email using SMTPMail requires user to be administrator on the server???

Hi,

I have built an webapp in C# that uses SMTPMail to send mail to users.
When I installed it on the prodserver everything worked fine for me, but the
users can not send mail.
They get Access denied. If I add them to the administrator group of the
server everything works fine.

I have set
<identity impersonate="true"/>
in my web.config.

And tried to add users in my local SMTP Virtuall Server.
But I´m using an external Exchange as my SMTP server in my code.

Is there anything else I need to do to let the users send email? I read that
I need
to grant permissions in tha ACL(?), for users to send emails i ASP.NET?

Would be very greateful if anyone could help me!!

/Robert Pettersson
Nov 18 '05 #1
6 2882
AS well as setting "identity impersonate" to true, did you set which user to
impersonate.

i.e.
<identity impersonate="true" userName="DMN\UserName" password="password" />

"Robert Pettersson" <ro****@carnegie.se> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have built an webapp in C# that uses SMTPMail to send mail to users.
When I installed it on the prodserver everything worked fine for me, but
the
users can not send mail.
They get Access denied. If I add them to the administrator group of the
server everything works fine.

I have set
<identity impersonate="true"/>
in my web.config.

And tried to add users in my local SMTP Virtuall Server.
But I´m using an external Exchange as my SMTP server in my code.

Is there anything else I need to do to let the users send email? I read
that
I need
to grant permissions in tha ACL(?), for users to send emails i ASP.NET?

Would be very greateful if anyone could help me!!

/Robert Pettersson

Nov 18 '05 #2
joe

I am not sure if you need to do this but have you tried
with Deny users="?" //deny unauthenticated users

in the web config,
-----Original Message-----
Hi,

I have built an webapp in C# that uses SMTPMail to send mail to users.When I installed it on the prodserver everything worked fine for me, but theusers can not send mail.
They get Access denied. If I add them to the administrator group of theserver everything works fine.

I have set
<identity impersonate="true"/>
in my web.config.

And tried to add users in my local SMTP Virtuall Server.
But I´m using an external Exchange as my SMTP server in my code.
Is there anything else I need to do to let the users send email? I read thatI need
to grant permissions in tha ACL(?), for users to send emails i ASP.NET?
Would be very greateful if anyone could help me!!

/Robert Pettersson
.

Nov 18 '05 #3

When I try to set a specific user I get a error:

Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary
ASP.NET Files\internalfundtrades\8b42c84e\34a38a07\hash.we b" is denied.

But I don´t really want the user to impersonate another user. Beacuse I want
to pick up which logged on user it is to log the actions.
My application is used on intranet only, and I don´t allow anonymous access.
This is an update to my application, I used to have a VB6 component
that sent email using CDO, and that worked fine.

/Robert
"GrantMagic" <gr***@magicalia.com> wrote in message
news:eP**************@TK2MSFTNGP11.phx.gbl...
AS well as setting "identity impersonate" to true, did you set which user to impersonate.

i.e.
<identity impersonate="true" userName="DMN\UserName" password="password" />
"Robert Pettersson" <ro****@carnegie.se> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have built an webapp in C# that uses SMTPMail to send mail to users.
When I installed it on the prodserver everything worked fine for me, but
the
users can not send mail.
They get Access denied. If I add them to the administrator group of the
server everything works fine.

I have set
<identity impersonate="true"/>
in my web.config.

And tried to add users in my local SMTP Virtuall Server.
But I´m using an external Exchange as my SMTP server in my code.

Is there anything else I need to do to let the users send email? I read
that
I need
to grant permissions in tha ACL(?), for users to send emails i ASP.NET?

Would be very greateful if anyone could help me!!

/Robert Pettersson


Nov 18 '05 #4
impersonating a user will not change which user is logging the actions, that
should be handeled within the application. Impersonating a user will merely
impersonate that user for actions on the server .. like sending the mail.
In you application you can then log which user sent the mail, or speficy
that in the from address.

If this solution is still viable for you, then about that error:
Is the user your impersonating an administrator on the server?
Have you tried restarting IIS?
If that fails, post a question of search on Google

Hope this can help you out

Grant

"Robert Pettersson" <ro****@carnegie.se> wrote in message
news:eE**************@TK2MSFTNGP11.phx.gbl...

When I try to set a specific user I get a error:

Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary
ASP.NET Files\internalfundtrades\8b42c84e\34a38a07\hash.we b" is denied.

But I don´t really want the user to impersonate another user. Beacuse I
want
to pick up which logged on user it is to log the actions.
My application is used on intranet only, and I don´t allow anonymous
access.
This is an update to my application, I used to have a VB6 component
that sent email using CDO, and that worked fine.

/Robert
"GrantMagic" <gr***@magicalia.com> wrote in message
news:eP**************@TK2MSFTNGP11.phx.gbl...
AS well as setting "identity impersonate" to true, did you set which user

to
impersonate.

i.e.
<identity impersonate="true" userName="DMN\UserName" password="password"

/>

"Robert Pettersson" <ro****@carnegie.se> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I have built an webapp in C# that uses SMTPMail to send mail to users.
> When I installed it on the prodserver everything worked fine for me,
> but
> the
> users can not send mail.
> They get Access denied. If I add them to the administrator group of the
> server everything works fine.
>
> I have set
> <identity impersonate="true"/>
> in my web.config.
>
> And tried to add users in my local SMTP Virtuall Server.
> But I´m using an external Exchange as my SMTP server in my code.
>
> Is there anything else I need to do to let the users send email? I read
> that
> I need
> to grant permissions in tha ACL(?), for users to send emails i ASP.NET?
>
> Would be very greateful if anyone could help me!!
>
> /Robert Pettersson
>
>



Nov 18 '05 #5
It looks like you require authentication to send message using the Exchange
server ?

AFAIK in .NET 1.1 you can do that using the "fields" property.
http://blogs.bartdesmet.net/bart/arc...04/21/257.aspx

It doesn't have to be the user account. It could be a specific "service"
account...

Patrice

--

"Robert Pettersson" <ro****@carnegie.se> a écrit dans le message de
news:OT**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have built an webapp in C# that uses SMTPMail to send mail to users.
When I installed it on the prodserver everything worked fine for me, but the users can not send mail.
They get Access denied. If I add them to the administrator group of the
server everything works fine.

I have set
<identity impersonate="true"/>
in my web.config.

And tried to add users in my local SMTP Virtuall Server.
But I´m using an external Exchange as my SMTP server in my code.

Is there anything else I need to do to let the users send email? I read that I need
to grant permissions in tha ACL(?), for users to send emails i ASP.NET?

Would be very greateful if anyone could help me!!

/Robert Pettersson

Nov 18 '05 #6

I had to give permissions to the Temporary ASP.Net Files Dir.

Then the impersination worked, and the mail worked.

Thanks for the help.

Really appreciate it!

/Robert

"GrantMagic" <gr***@magicalia.com> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
impersonating a user will not change which user is logging the actions, that should be handeled within the application. Impersonating a user will merely impersonate that user for actions on the server .. like sending the mail.
In you application you can then log which user sent the mail, or speficy
that in the from address.

If this solution is still viable for you, then about that error:
Is the user your impersonating an administrator on the server?
Have you tried restarting IIS?
If that fails, post a question of search on Google

Hope this can help you out

Grant

"Robert Pettersson" <ro****@carnegie.se> wrote in message
news:eE**************@TK2MSFTNGP11.phx.gbl...

When I try to set a specific user I get a error:

Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary
ASP.NET Files\internalfundtrades\8b42c84e\34a38a07\hash.we b" is denied.

But I don´t really want the user to impersonate another user. Beacuse I
want
to pick up which logged on user it is to log the actions.
My application is used on intranet only, and I don´t allow anonymous
access.
This is an update to my application, I used to have a VB6 component
that sent email using CDO, and that worked fine.

/Robert
"GrantMagic" <gr***@magicalia.com> wrote in message
news:eP**************@TK2MSFTNGP11.phx.gbl...
AS well as setting "identity impersonate" to true, did you set which user
to
impersonate.

i.e.
<identity impersonate="true" userName="DMN\UserName"
password="password" />

"Robert Pettersson" <ro****@carnegie.se> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I have built an webapp in C# that uses SMTPMail to send mail to

users. > When I installed it on the prodserver everything worked fine for me,
> but
> the
> users can not send mail.
> They get Access denied. If I add them to the administrator group of the > server everything works fine.
>
> I have set
> <identity impersonate="true"/>
> in my web.config.
>
> And tried to add users in my local SMTP Virtuall Server.
> But I´m using an external Exchange as my SMTP server in my code.
>
> Is there anything else I need to do to let the users send email? I read > that
> I need
> to grant permissions in tha ACL(?), for users to send emails i ASP.NET? >
> Would be very greateful if anyone could help me!!
>
> /Robert Pettersson
>
>



Nov 18 '05 #7

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

Similar topics

2
by: ufraf | last post by:
Hey i am a total newbie in .net.I'm working on an assignment to send email to the adimin id that's my official id (xx.xx@something.com - the code developers id) when an invalid user trys to login...
13
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using...
5
by: Pascal Cloup | last post by:
Hello, I just want to send an e-mail from my windows form application without specifying SmtpServer. On my computer, when i specify my smtpserver, SmtpMail.Send( aMail ) works fine, but...
6
by: Eduardo Rosa | last post by:
Somebody knows how I queue email using .Net? thanks a lot
2
by: Rene | last post by:
Hi all i need some help. i try to send mail with the following code. Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click Dim...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
14
by: sridhar | last post by:
iam having user account on an exchangeserver. with that can i send an email using python? if iam using the following code iam getting error fromAddress = 'sridhar_kasturi@satyam.com'...
3
by: raj200809 | last post by:
when i m sending mail i received error from symantec Antivirus" Your email message was unable to be sent because your mail server rejected the message 550-5.7.1 the ip you’re using to send mail is...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.