.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

How to send mail to individual users.

Posted By:      Posted Date: August 24, 2010    Points: 0   Category :ASP.Net


  I need to send the same mail to multiple users separately. I dont want to use comma delimeted "To Address" . Because other users can able to see the recipients.

   Each recipient should not know about the other recipients. 

   How will I achieve this one without for loop ?


View Complete Post

More Related Resource Links

SPD Email only works when I type actual e-mail, but does not send to users or groups


I've viewed other e-mail related posts on this forum and have not seen this specific question, so I'll ask.

I've got an approval workflow that I created in SPD.  It works, but when I try to attach e-mail to it, the e-mails do not send to the e-mails associated with the user or groups profiles in SSP (User profile properties). 

For testing purposes, I tried creating a simple workflow that only sends one email to one person.  This doesn't work.  I try sending it to 2 different specific e-mail addresses instead of trying to do a "This specific user" or "Current item:Created by" or something else chosen by SPD: 1 of which is a personal e-mail, another is an e-mail that is assigned to a user's profile in SSP.  Both were received.

So basically the situation is what title says: SharePoint Designer workflow sends an e-mail when the e-mail targets specific e-mail addresses, but not SharePoint users or groups.  So basically DOMAIN\username does not work, but user@domain.com does work.  Any suggestions would be appreciated.

I'm using Moss 2007, SP1.

Toolbox: Create Graphs, Send E-Mail, Spell-Check, and More


Turn boring data into stunning graphs, create, parse, send, and receive mail messages from code, and more.

Scott Mitchell

MSDN Magazine August 2007

I cannot send mail using gmail smtp server


 Here is my code

Dim message As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
        message.To.Add("from textbox field")
        message.Subject = "Testing"
        message.From = New System.Net.Mail.MailAddress("sender email ")
        message.Body = "Just Testing"

        Dim smtp As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient()

        Dim client As SmtpClient = New SmtpClient()
        smtp.Credentials = New System.Net.NetworkCredential("username", "password")
        smtp.Port = 25
        smtp.Host = "smtp.gmail.com"
        smtp.EnableSsl = True
        smtp.DeliveryMethod = SmtpDeliveryMethod.Network
        lblmsg.Text = "Your Email has send"


E-Mail Alerts for users on Task List


Is there any way to send e-mail alerts to a specific user wihtout assigning them the task or having them subscribe to the list.

It's a Task List on WSS 3 on Win2k3 Enterprise'


send mail don't run

Dim strFrom = "NewsLetter@Kinesiologiaviva.it"             Dim strTo As String = String.Empty             Try                 Dim conn As SqlConnection                 Dim cmd As SqlCommand                 Dim cmdstring As String = "SELECT * FROM vw_MLDestinatari Where [NomeCont]='" & TxtGruppo.Text & "'"                 conn = New SqlConnection(SqlDataSource1.ConnectionString)                 cmd = New SqlCommand(cmdstring, conn)                 conn.Open()                 Dim myReader As SqlDataReader                 myReader = cmd.ExecuteReader(Data.CommandBehavior.CloseConnection)                 While myReader.Read                     strTo &= myReader("Mail") & "; "                 End While            &n

How do I send mail using C#?

Does anyone have a code snippet that shows how to send mail from c#?

How to send E-mail through web site........???

Dear All,    help me in this problem....  "there is one forgot password module in my website.. whenever user click on "forgot password" link then one mail with password directly sent on his email address.." i dont know how do ,, so, help me in this problem...   Thanks, PIYUSH

does SPD support filtering of the mail title/body we send to a list/library?

for example, if we send a mail with the title of "%hostname% %ipaddress%" to a list. can SPD WF filter the title and get %hostname% to a new variable? the reason to ask this is i want to send a well-formated mail to sharepoint and the automatical WF can recognize the change of the list items and update the relevant columns by the filtered content from mail title or body. thanks!

Send E-mail with attachment with workflow

I use workflow in custom list. When new item is created and have attachment. An e-mail is send with attachment. I can not add attachment, or I don’t know how to do that with lookup. I can add link with ID of newly created item, which is ok. But I would like to add attachment directly…Borut

send email to all users with certain rights

Hello,  I'm using Sharepoint Designer and Foundation 2010. I am a new admin and appreciate all the help I can get.  Here's what I'm trying to do.   I have several business workflows that call for notifying the users of a particular site. Rather than set the workflow to email specific users or even a group of users, I'd like to set the workflow to email anyone within a certain rights level. For example, I want to notify all users with Contribute level rights whenever a new document is loaded or modified.    Is there a quick way to do this?Beth Singley PBM Graphics

Mail not send

Hi,In my site, when user submit a form records will send to admin. it is working fine in local machine. but in my server it's not working. it throwing the exception as Could not find file 'C:\Windows\SysWOW64\inetsrv\Tulips.jpg'. I'm using smtp.gmail.com as smtp server and provided network authentication.

SSIS 2005 - Send Mail Task - signature appended to email is garbled - unicode problem?

Hi, I'm pretty new to SSIS so go easy on me. I have a Send Mail Task to notify if a file cannot be imported - the mailbody is created on the previous step by a VB.NET script task to include the name of the file and the path it's been archived to. The problem I'm having is that while the body of the email I've created is displaying fine, our company's Exchange server appends a signature to all emails, and this is coming up as undisplayable characters, presumably due to some kind of unicode encoding problem. I've tried casting the email body in an expression to DT_STR (doesn't work as DT_STR "cannot be converted to a supported type" which seems a bit odd but never mind), DT_WSTR (garbled signature), DT_TEXT/DT_NTEXT (strange error on this one - "Attempted to read or write protected memory") none of those ideas worked, and I'm a bit stumped now. Can anyone help? I'm using SSIS 2005 with SP3

send records as weblinks through send mail task in SSIS?

Hi All, i have a table with two columns and two records as follows. TypeOfReport                       Links InvalidRecords                http://ReportInvalid MissingRecords               http://ReportMissing --------------------- I have a package with execute sql task selecting * from the table above, full result set selected and an object variable created, it works good. but now when i connect it with send mail task, i wanna send email like Subject : Reports On InvalidRecords and MissingRecords MessageText : Links for the Reports : http://ReportInvalid                                                     : http://ReportMissing Can somebone help me with it. NOTE : i tried creating user and object variable but its good if i have only one record in table. i tried creating 2 user and 2 object variables as well but didnt work. Thanks

Best Way to Store Users Mail Address

I have some webforms and the main page grabs the users email address when they login and a UserID.  It's not uncommon for the user to keep the web page open all day.  Is it good practice to store the email address and ID as a session variable and up the timeout to say 10 hours?  Or is there a better way?  My concern is A) Session variables timing out before the user login timesout B) Doing this incorrectly. Thanks!

SSIS Send mail task

In the Send mail task, I want to use a variable in the To:(recipients of the email message) of the task. So I declared Emailrecipients variable as a string. In property expressions editor of the Send mail task: I wrote the follow expression: Property: ToLine Expression: @[User::Emailrecipients] In the send mail task editor, in the To line, what should I write? Thanks.  sqldev

how send mail with out help of sp_send_dbmail in sql server 2005

Hi all, I want to sent mail using sp_send_dbmail but the hosing have problem as it require admin permission on master db so  they told me not use this SP is there any other method so that i can send the mail using SQL Server 2005  Thanks and Regards Er.Pradipta Nayak

Mail Send Error

I'm trying to send an email through a form and for some reason it errors when it sends. The only error message I get is "Failure sending mail". I've followed a number of tutorials and I'm guessing I'm missing some sort of configuration. Here is the code which attempts to send mail:try { SmtpClient smtpClient = new SmtpClient(); MailMessage mailMessage = new MailMessage(); MailAddress mailAddress = new MailAddress(fromEmail, name); smtpClient.Host = "localhost"; smtpClient.Port = 4444; mailMessage.From = mailAddress; mailMessage.To.Add(toEmail); mailMessage.Subject = subject; mailMessage.IsBodyHtml = false; mailMessage.Body = message; smtpClient.Send(mailMessage); } catch (Exception ex) { txtPhone.Text = ex.Message; }  Thanks for your help
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