SmtpMail works for logged on user but not asp.net on Windows XP

J

John Lau

Hello,

I am sending an email using System.Web.Mail.SmtpMail to send mail. This
works fine when I am debugging in VS.Net, but fails when I am running from a
browser. The error message is:

Cannot open log for source {0}. You may not have write access.

When I comment out the SmtpMail.Send statement, the error goes away. What
permissions am I missing?

Any help would be greatly appreciated.

Regards,
John
 
J

John Lau

Hey,

It was because my SmtpServer was not set properly. What a strange error.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top