.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Email alert reverting to System Account, which has no email associated.

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

Hello, On my Virtual PC, MOSS 2007 I have these accounts:




System Account - SHAREPOINT\System

For some reason no matter which one of these I enter into the "Send Alerts To" in the New Alert form, it sets it to the last one I haev listed above, the System Account.

I've gone through the steps as I've done many times before to add a new alert to make sure I didn't miss anything, however, I am hitting the same problem when I try to set up a new alert on a list:

"The following users do not have e-mail addresses specified: BRUCEVPC\Administrator. Alerts have been created successfully but these users will not receive e-mail notifications until valid e-mail addresses have been provided"

"Set my e-mail address..."

Then, when I try to set my e-mail address, it takes me to the profile for the system account, but with no options to edit or add an email:

Home > My Sharepoint Sandbox > People and Groups > User Information > Edit Personal Settings

It only shows me:

Attach File 

Account SHAREPOINT\system      
Created at 1/2/2009 2:31 PM  by System Account  
Last modified at 1/2/2009 2

View Complete Post

More Related Resource Links

Email Help (System.Net.Mail)


Hi I have a annoying problem. 
I have created a page which takes users details for a quote.

I have then created the form to be emailed to both the user and myself. (Which works fine ATM)

However I would also like to be able to attach a file containing terms and conditions to the email.

I have tried doing this using 

EmailMsg.Attachments.Add(new Attachment("C:\\attachme.txt"));

But everytime that line of code is hit it fails and is caught by my try catch.

Take that line out and the email sends fine, put it in and it breaks the whole page.

Am I missing something really obvious?

System.Threading AND email


Hi guys,

I really need some help (and also some code example), in how to use System.Threading to send emails.

The issue is:

a) I have a function that sends emails;

b) But I don't want to keep the customers waiting for the email being sent;

c) so, I figure it out that the System.Threading is the best way to do that; But I don't know how exactly I cant use it.

PLEASE, i'm VB - not C# - developer, and I really appreciate help in that language.

I can't use Windows Services or SQL Jobs...

Could you help me on this?



Add Issue ID to an email alert?


Dear all,

(running WSS 3.0)

I'm desperately trying to add the Issue ID to the alert email that is sent when a list item is assigned to you. I have looked around and followed many tutorials online, however none of my changes have had any effect. So far I have done:

  1. Copied alerttemplates.xml to customalerttemplates.xml
  2. Edited customalerttemplates.xml
  3. Removed "ID" from <ImmediateNotificationExcludedFields>
  4. Ran stsadm -o updatealerttemplates -url http://server -filename "C:\Program files\common files\Microsoft shared\web server extensions\12\template\XML\customalerttemplates.xml"
  5. Ran iisrest
  6. Restarted Sharepoint Timer service

However even after doing that the email sent when an item is assigned is just the basic default! I've just tried to add the ID to the most simple section of the email (footer) however nothing seems to change the email alert.

I've followed guides such as:


smtp is noe sending email instantly,it makes a Queue in my local system

I am using a  smtp to send email from asp.net (C#)code.it sending some email instantly but many of email is making a queue in my Inetpub folder at local system.what could be the issue ? please help me to get rid from it.ThankxArvind

ASP.Net Page to send email from Yahoo/Gmail Account

I want my ASP.Net onbuttonclick to send simple email from my Yahoo/Gmail account. Any document pointing to how to set this up on settings etc ? Thanks 

Immediate alert email body is truncated intermittently in MOSS 2007

Hi All, I  am facing one issue with Alert. We have one Posts list in one of the Blog where Alert Me generates immediate alert for the users who have subscribed to the Blogs. Whenever any new Post added, edited or deleted they used to get alerts. But in the alert email, the body of the alert which normally contains the Post decsription gets truncated intermittently. Sometimes it is truncated with less than 2048 characters in the Body filed and some times with more than 4098 characters. I found in some articles that the limitation is 2048 characters in one line after whcih the new line is expected , else the text will be truncated. I am not able to find the logic behind this truncation in default sharepoint alert functionality. Could you please give some more insights on this front? Thnaks:)  

Email Encryption using System.Net.Mail assembly

Hi folks, Has anyone used the above assemblies to send emails using public key enryption, specifically PGP? Cheers Mark 

Automatic Email alert generation

hi.. my web application contain insurance due date field(in TextBox,which is enterd by user),and i need automatic email alert generation for this field 1 month before the date specified in the textbox to specific email address... how can i code my requirement in c#...can any one one suggest altenate option if my concept is wrong...thanks in advance 

Custom Email Alert template creating links to DispForm.aspx

I have a requirement to customise the alert template for a standard blog post list. To do this I: 1. Created a copy of alertstemplate.xml 2. Copied the genericList alert template node and customised 3. Registered the new template file against the site collection, iisreset and finally assigned the new Alert template to the list, when alerts are created the custom template is emailed. The problem now arises that the 'View <Post Title>' in the toolbar section now creates a hyperlink to http..../Lists/Posts/Dispform.aspx?ID=xx rather than post.aspx. I have checked using sharepoint designer that the list supporting files has the correct display item form of Lists/Posts/Post.aspx. Additionally if I reset the alert template for the list back to use the Generic list template the same problem still occurs so this leads me to believe it is not the customisations that are the problem. Code used to assign the alert template to the Posts list: var ats = new SPAlertTemplateCollection((SPWebService) site.WebApplication.Parent); var newTemplate = ats[alertName]; if (newTemplate == null) { // We did not find the specified Template. throw new Exception("Failed to find template SPAlertTemplateType.NewsPost in the template collection."); } list.AlertTemplate = newTemplate; list.Update(); Any assistance will be most welcome, thanks in advance. Alan

Lotus Notes users get "Authentication Required" when viewing an alert email with a graphic

(This is a SharePoint 2007 question, but I only see SharePoint 2010 in the Forum options...kind of odd since SharePoint 2010 has not been released.)If our users open email alerts in Lotus Notes, and the email has an image, they are presented with a prompt for credentials that says:"Authentication RequiredEnter your username for Unkown at sharepoint.ourcompany.comUsername________________________Password________________________[ ] Save these in an Account in my address book[OK][Cancel]"Emails without graphics do not prompt for credentials.Does anybody know why this happens, or how we can fix it?

what is solution to enable my email alert

Hi, same problem I am also facing, but here I need a help, if I am rollback my changes means in “Item-level Permissions” section again I am selecting all items. But still I am not getting email, I need to enable my email alert ,what is solution to enable my email alert .

I need to enable my email alert ( after rollback my changes )

Hi, same problem I am also facing, but here I need a help, if I am rollback my changes means in “Item-level Permissions” section again I am selecting all items. But still I am not getting email, I need to enable my email alert ,what is solution to enable my email alert .

List can't send alert email

 the list can't send alert email successfully when filled in the assigned value with a user.  the out-going email configuration is right in central administration. the strange thing is If I create a new list, its can send mail successfully just one day, and stopped to work later. anybody can help me?Qiqing

create new email account in asp.net script

helloi want asp.net script to create new email account. i mean there should b registration form like gmail or yahoomail and my user can create their own account under my domain name.please help me.my client has extreme need this.thanks

Sending email System.net.mail


Ok here's my problem. I have a contact page with a txtbox for users name, email and message for users to contact me.  When I send the message it goes through, but the senders email is always my email. Even though i have set it to the txtEmail.Text property. So when I reply, it sends me an email. What am I not seeing that I messed up. Also this is running from VS 2005.

                 protected void btnSubmit_Click1(object sender, ImageClickEventArgs e)

                 const string toAddress = "myemail@gmail.com";
                    MailAddress from = new MailAddress(txtEmail.Text, txtName.Text);
			        MailAddress to = new MailAddress(toAddress, "Admin");
			        MailMessage message = new MailMessage(from, to);

			        // set properties
			        message.Subject = txtName.Text + " has sent you an email!";
			        message.Body = txtMessage.Text;
                                message.IsBodyHtml = false;

			        //create smtp object
			        SmtpClient client = new SmtpClient();
                               client.EnableSsl = true;

                    catch(Exception ex)

Error while sending email using ASP.NET 2.0 -'System.Net.Mail.SmtpException: Failure sending mail


'System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.   at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)   at System.Net.Mail.SmtpReplyReader.ReadLine()   at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)   at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)   at System.Net.Mail.SmtpClient.Send(MailMessage message)   --- End of inner exception stack trace ---   at System.Net.Mail.SmtpClient.Send(MailMessage message) 

 i tried many things but still awaiting solution



sometimes  i get this error

 'System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'smtp.mail.y

Embedding hyperlink in email using System.Net.Mail;


My goal is to embed a link in the email.

Purpose is that the user needs to click the link in his email to activate the account.

But my emailbody with the link is just shown as plain-Non clickabel text.

the body text looks like:

string mailBody = "please click the following link to activate your account:<br>

string mailBody = "please click the following link to activate your account:<br>" +
I use the follwing code
System.Net.Mail.AlternateView plainView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(System.Text.RegularExpressions.Regex.Replace(BodyText, @"<(.|\n)*?>", string.Empty), null, "text/plain");
System.Net.Mail.AlternateView htmlView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(BodyText.Replace("\n","<BR>"), null  , System.Net.Mime.MediaTypeNames.Text.Html);


How do i embed this link in the receivers ema
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend