Send major mail for items in a list

Hi,
I have a task list and would like to send for each person who is responsible one email that contain details about all the tasks that the person is responsible on.
Any ideas ? where should I start ?

Hi Nikita,
Per my knowledge, site workflow cannot achieve what you want.
I recommend to send the email to the specific user programmatically.
Here is the code example for your reference(send email to one user):
using (SPSite site = new SPSite("http://sp"))//use your own site collection URL
using (SPWeb web = site.OpenWeb())//if it is a subsite, please add the Title of the subsite here
SPList list = web.Lists["Tasks"];//your task list name
SPQuery qry = new SPQuery();
qry.Query = "<Where><Eq><FieldRef Name='AssignedTo' /><Value Type='User'>Administrator</Value></Eq></Where>";
SPListItemCollection items = list.GetItems(qry); //you can add more query to get the items assigned to other users
string text="";
for (int i = 0; i <items.Count; i++)
SPListItem item = items[i];
text += SPEncode.HtmlEncode(item["Title"].ToString()) + " : " +
SPEncode.HtmlEncode(item["Status"].ToString()) + " : " +
SPEncode.HtmlEncode(item["Start Date"].ToString()) + " : " +
SPEncode.HtmlEncode(item["ID"].ToString()) + "<BR>";
bool appendHtmlTag = false;
bool htmlEncode = false;
string toAddress = "[email protected]";//the user’s email address
string subject = "Your Tasks";
string message = text;
SPSecurity.RunWithElevatedPrivileges(delegate()
bool result = SPUtility.SendEmail(web, appendHtmlTag, htmlEncode, toAddress, subject, message);
Best regards.
Thanks
Victoria Xia
TechNet Community Support

Similar Messages

  • HT5312 Every time I click send e-mail for instructions on resetting my security questions, I don't get them? I just want to play minecraft. I already put $15 in my balance and I can't even spend it. Thank you for taking the time to read this.

    Why is it, every time I click send e-mail for instructions on resetting my security questions, I don't get them? I just want to play minecraft. I already put $15 in my balance and I can't even spend it. Thank you for taking the time to read this.

    Either they're being sent to a different email address, or got caught in a spam filter, or something's wrong at Apple's end. If you can't find the email, you need to ask Apple to reset your security questions, which can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    (105723)

  • HT5361 How to send a mail to my entire contact list of my Mail app ?

    How to send a mail to my entire contact list of my Mail app ?

    Hello Madhu,
    The only way to send an email without opening a client is: using server-side mail objects invoked by your app.
    This would be the workflow:
    - your user fills in form data (subject, body, mail_to)
    - your application sends form data to a server (via httpservice or webservice or AMF)
    - the server takes care of sending the mail in a way that is transparent to your user
    So: it is not possible to send emails without opening the iPhone client (I think by "outlook" you mean the "mail client" with an Exchange account) for security reasons. You wouldn't want any app to send mails without you pressing "Send" in a known interface.

  • Auto Send E-Mail For wishing BirthDay in Organization

    Hi All,
    Auto Send E-Mail For wishing BirthDay in our Organization. pls could help me
    Regards
    Bala

    887768 wrote:
    Hi All,
    Auto Send E-Mail For wishing BirthDay in our Organization. pls could help me
    Regards
    BalaDatabase or text file with birthdates, email addresses and names; JavaMail ; scheduled job (for example use the scheduler of your operating system)

  • Send one mail for multiple list item update

    i have 3 lists storing customer details which are displayed in a page. i need to send mail whenever there is customer details update(any or all 3 lists). should send only one mail per customer details update(not per list item update).Please advise how to
    achieve this using SharePoint workflow.

    Hi,
    According to your post, my understanding is that you want to send an email when this are list items update.
    A workaround is that we can use one big list to store the customer details from these three lists, then let users update their information in the big list and send email.
    Or we can create a form to update these 3 lists, then send a mail when the form saved.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/39f2d0bf-6cfd-4b61-b0b7-ff89113406d5/update-multiple-list-from-a-single-form-using-infopath-in-sharepoint-2010?forum=sharepointcustomizationprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Change Sender of Mail for PO pdf layout

    Dear All,
    We send PO layout via mail to the vendors .For this process , we use standard program SAPFM06P .
    According to standard program , the sender of mail is creation of PO ,however , We need to change the sender . Is there any way to change the sender as user-exit or any way ?
    Thanks ,
    Best Regards
    Dash

    Hello,
    do you find a sollution for this problem?
    We have the same problem.
    regards!

  • To send a mail for failed login attempts,.

    We have to implement the mailing system in linux.,to send the mail regarding failed login attempts and ip address of user who attempted the failed login.,any one have the idea on this?
    Regards.,
    Vaaru

    Running an old beta version of RHEL is a bad idea. If you are concerned about security and operation of your OS I suggest to use a more recent release version. You can download, install and use Oracle Linux for free.
    Mail processing of failed login attempts is not a good idea and to my knowledge there is no such built-in system setting. I suggest you read the standard documentation or search the Web for information on how to set up a mail system. You will probably need to create a custom script to process failed login attempts.

  • While creating Purchase Requisition we need to send a mail for approvers

    Hi All,
    While creating Purchase requisition we need to send a mail to approvers.
    Dowe  need to create Function module ?
    if You know the steps can you please give me the steps.
    Thanks In advance
    Sriman.

    Hi Sriman
    Here we can try for 2 approach
    one is workflow and other his sending emails via user exit.
    I am not much aware about workflow, but you can explore for user exit.
    Try for enhancement component 'MEREQ001'.
    let me know, if you need further help
    Regards
    MD

  • How to Send biulk mail  for 20,000 people with out blocking the mail server

    Hi .......... ALL
    I am developing a News module in our project, for this have to write code to send everyday news for 20,000 mail Ids
    I Developed a code that can send to one Id or multiple.
    Weather this type of mail sending treated as spam mail or blocking the mail server i did not know, any of one can please help me.
    If this type is not suitable then what is way to send bulk mails please guide me
    please help me......................
    BY Ramds
    MY Mail ID: [email protected]
    Edited by: ramdasteja on Oct 3, 2008 4:13 AM

    Hi .......... ALL
    I am developing a News module in our project, for this have to write code to send everyday news for 20,000 mail Ids
    I Developed a code that can send to one Id or multiple.
    Weather this type of mail sending treated as spam mail or blocking the mail server i did not know, any of one can please help me.
    If this type is not suitable then what is way to send bulk mails please guide me
    please help me......................
    BY Ramds
    MY Mail ID: [email protected]
    Edited by: ramdasteja on Oct 3, 2008 4:13 AM

  • I CANNOT USE WINDOWS HOTMAIL TO SEND E MAILS FOR 3 WEEKS NOW????

    I was using Safari with my new Apple Mac Air laptop, but could not load Hotmail sometimes, or play a Zynga game that I like to play as I am disabled, and partially housebound.
    I called my Internet Service Provider (Plusnet) who advised me to change browser and install Mozilla Firefox, which I did, with great success, until now. Now I am unable to send an e-mail with Hotmail, although I can read e-mails sent to me.
    Could you please fix this problem as quickly as possible please.
    My friend also has the same problem with Firefox, which he has recently added at my recommendation, but he is now able to send e-mails but not any attachments.
    Please contact me URGENTLY as I really need this facility on Firefox.
    Thank you very much.

    * No, this is forum-based support. We do not send emails.
    * Please answer the two questions I posted - you'll need to read them and one knowledge base article for that.
    --Thank you.

  • Major Mail for Exchange problem

    Hi
    I have installed Mail for Exchange (v2.09) on my Nokia N96, which has the latest software update (20.050).
    My problem relates to the initial synchronisation process. Having inputed all of the relevant information (server/username/password/domain name etc), the current status shows that MfE is connected, and remains like this for anything up to 30 seconds, before changing to 'Idle'
    A check on the Last sync log then reveals the message 'Connection error. Try again later' and a further check in the Mail for Exchange mailbox (in Messaging) subsequently reveals that no e-mail messages have been downloaded.
    I have checked with the IT Department at the company I work for and they have assured me that they have 'Direct Push over HTTP' enabled and I have also installed the relevant SSL certificate and checked the trust settings are correct.
    The company uses Outlook Web Access and have active sync working. I have even tried connecting a few different ways, including contract WAP and my home WLAN network as well as my regular contract internet.
    Any ideas please?? 

    Thanks for the link. Unfortunately, I am already using the new version of Mail for Exchange that supposedly includes a fix (v2.09). I have also tried syncing my folders individually but to no avail. I've double checked the settings with my IT department and they all seem to be correct, but I am still receiving the 'Correction error. Try again later' message after attempting to sync.

  • Alert mail for "Pending" column in List SharePoint 2013.

    I'm using SharePoint 2013 online. I've created one List in which one Column is Choice (Completed, Pending) column named "Status". For all Item If "Status" is Pending, weekly one mail should fire with List of only "Pending"
    Items as a alert to a person/group.
    I think this is possible through SP Designer 2013 but not sure how (:. Please provide steps if you have any idia. Thanks.

    Hi,
    I agreed with the above replies, there is not an OOB way to check the list and send email weekly via SharePoint Designer workflow. You need to create a custom timer job to achieve it.
    In addition, as an alternative workaround, I suggest you create a workflow to check whether the "Status" column of the current item is pending, and send an email. Then use retention feature to start the workflow, and you can set it  recurrence
    per 7 days.
    About retention feature, you can refer to the link:
    http://www.cmswire.com/cms/document-management/sharepoint-2010-using-retention-stages-to-manage-the-lifecycle-of-information-007478.php
    And, as this issue is related to SharePoint Online, you can also create a new thread on Office 365 forum, more experts will assist you with SharePoint Online.
    http://community.office365.com/en-us/f/default.aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Email Alerts for Items in a List

    I have a List that contains Items that are worked on by multiple users.
    I would like to set up an Alert, or a Workflow in SharePoint Designer, that allows a user who is changing the Item to trigger an email to a user (or users) of their choice, and I would like for this email to function like a "changed item Alert"
    (i.e., I want the email to show the recipient everything that has been changed about that Item).
    I have tried doing this with Alerts, but I cannot specify who should receive the Alert. I have tried this with Workflows, but cannot figure out how to have the email display the changed fields (in the way that Alert emails show changed fields).
    Thanks very much for any help!

    See if the following article helps you
    http://office.microsoft.com/en-us/sharepoint-designer-help/watch-this-run-a-workflow-when-a-specific-field-changes-HA010256419.aspx
    Else you can create a custom activity
    http://msdn.microsoft.com/en-us/library/office/hh872790(v=office.14).aspx
    http://social.technet.microsoft.com/wiki/contents/articles/13604.sharepoint-2010-create-a-workflow-activity-using-visual-studio-2010.aspx
    --Cheers

  • Error appears: Cannot send message. this message cannot be sent at this time - has been appearing everytime i try to send e-mail for the past week!

    For the past week I have not been able to send both simple and attached messages through my icloud e-mail.
    The error reads: this message cannot be sent at this time.  i have the latest version of Firefox, I have even changed my password in hopes that this would resolve the issue, but alas, it hasn't worked. HELP!

    This is a terrible customer experience for Apple users. I have been dealing with this same issue since April 2012; all used to work just fine and then suddenly -- "Cannot send message" error appears.
    When is Apple going to fix this? I have two iPads and an iPhone but often need to access files from my PC (next time, it'll be a Mac),
    Very frustrating.

  • Exchange 2013 public folders are sending read receipts for items viewed in public folders

    We have Exchange 2013 with public folders.  These public folders are used for a large amount of shared contacts.  When a user goes into the public folders and double clicks on a contact to view it, Exchange dispatches a read receipt to all users
    that are configured as publishing editors to notify them that a certain contact was read.  How do I disable this option?

    hi again dear.. :)
    "At first, I would like to say the
    read Receipt is not sent out by the device, it is sent out by the Exchange server. This is how it works and what happens:
    1.     
    E-mail with request for send
    receipt is received on the Exchange server;
    2.     
    E-mail is synchronized with Windows Mobile based device using Exchange
    ActiveSync;
    3.     
    When e-mail is
    read on Windows Mobile based device the read status is synchronized back to the Exchange server;
    4.     
    The Exchange server creates and sends out the
    Read Receipt when receiving the Read status update from the device;
    The above is how this is implemented and there is no functionality which allows preventing this from occurring on the Mobile device.
    It seems that there is an alternative method to disable RR using transport rules. However, it will at the risk of the filtering out other messages
    with the same subject.
    Towards the third party mobile clients that support RR and DR, you might consider using Flexmail 4.11. It’s impossible to deactivate ActiveSync
    RRs in Exchange server 2007/2010."
    also
    One way to stop read receipts being triggered through client side configuration on the mobile is to use the option "Don't Mark Read on server".
    I have tested this successfully using this option in the TouchDown mail client on Android.
    Not sure if the standard or other mail clients do support this option, TouchDown certainly does and it works.
    The side effect obviously is, that the read status isn't synced back to Exchange anymore:"
    hope now i r clear... one way or the other... you need to send a feed back or define a transport rule... but that again may create problem with the same subject :)
    Regards Shah. MCITP, MCMA, MCTS No claims (try at your own risk)

Maybe you are looking for

  • Show + image instead of handle in jtree

    I have created jtree. I have implemented my own TreeCellRendererComponent. I set the node images as per node type. My problem is, I need to get '+' sign to nodes not expanded and '-' for those expanded instead of default handles. How do I implement i

  • Mouse pad not working properly having downloaded Windows 8

    Hi, having downloaded Windows 8 to my laptop (HP Spectre xt 13-2000ea) the mouse pad has stopped working properly. The "two finger" page down/up and left/right has stopped working. I have looked at the mouse settings and it currenlty states the synap

  • Airport Express 802.11n Destroyed my external drive?

    Ok.. taking a deep breath. My new 802.11n apple extreme base station could no longer recognize my external drive. (post 10.4.9 install). I am not sure if the new aebs killed it or 10.4.9 or a combination of both. Note I've had it this drive for about

  • Script to bulk assign 'My Site collection' secondary administrators

    Hi Staff in my company have already logged in and created their own My Sites and when they did this it set themselves as the primary administrator but left the secondary administrator blank. I want to add spadmin to the secondary administrator role.

  • USB connected printer won't print via Time Capsule

    When I go into my Airport Utility, the Time Capsule says that the the printer is connected, but whenever I try to print I get a "Printer Offline" error message. Any suggestions for what I can try to remedy the situation? Is there anything else you ne