Javascript toopen outlook email from sharepoint

Is there a javascript to open a outlook email with "TO :" and "SUBJECT:" populate from fields in the list item.
Like i have manager(people and group field) and project(single line of text)
I want to have a Request email button in disply form on click of the button outlook email should oprn with "TO:" field with manager value and "SUBJECT:" with project value.

Hi Dilip,
Do the following
Create one JS file in your site and paste the code the below I have given
then open the particular list Allitems.aspx page in designer and map the created JS file on the page ( Refer Image)
In Example I have three column in my list I have take the value from Title(subject) and To field and updated to SendEmail filed
$(document).ready(function () {
BuildEmail();
function GetItemType(ListData) {
$.ajax({
url: _spPageContextInfo.webAbsoluteUrl+ "/_api/lists/getbytitle('Test')?$select=ListItemEntityTypeFullName",
type: "GET",
headers: { "Accept": "application/json;odata=verbose" },//return data format
success: function (data) {
updateList(data.d.ListItemEntityTypeFullName,ListData);
error: function (data2) {
self.error("Error in processing request " + data2.responseText);
function BuildEmail() {
var requestUri = _spPageContextInfo.webAbsoluteUrl+ "/_api/web/lists/getbytitle('Test')/items";
var requestHeaders = { "accept": "application/json;odata=verbose" };
$.ajax({
url: requestUri,
contentType: "application/json;odata=verbose",
headers: requestHeaders,
success: function (data) {
GetItemType(data);
error: function (data) {
alert(data.responseText);
function updateList(itemType, ListData) {
$.each(ListData.d.results, function (key, value) {
var cat = {
"__metadata": { "type": itemType},
"SendEmail":
"__metadata": { "type": "SP.FieldUrlValue" },
"Description": "Send Email",
'Url': "mailto:"+value.To+"?Subject="+value.Title
$.ajax({
url: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/lists/getbytitle('Test')/items(" + value.ID+ ")",
type: "POST",
contentType: "application/json;odata=verbose",
data: JSON.stringify(cat),
headers: {
"Accept": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-HTTP-Method": "MERGE",
"If-Match": "*"
success: function (data) {
error: function (data) {
alert("error");
In code Change the List Name. Currently listname was Test change that value and column name also
Ravin Singh D

Similar Messages

  • Connect outlook emails to sharepoint site

    HI, I need to figure out how to display my emails from outlook directly onto my sharepoint online site, can anyone help me with this please?

    Hi,
    According to your post, my understanding is that you wanted to display the Outlook email in SharePoint online site.
    You can use the page view webpart to achieve it, you can refer to the folllowing steps.
    Step 1: Add the “Page Viewer” web part on a page
    Step 2: View Outlook Web App segments in the web part
    Click open the tool pane in the new Page Viewer web part
    Type an URL like the following 
    https://db3prd0206.outlook.com/owa/?exsvurl=1&cmd=contents 
         in the Link text box, where the highlighted part must be your own mailserver.
    In SharePoint 2013, we can also use the site mailbox to achieve it.
    http://camerondwyer.wordpress.com/2013/10/30/integrating-outlook-web-access-owa-and-sharepoint-2013/
    As this is the forum for the SharePoint server, I recommend you can post your question to the forum for SharePoint Online:
    http://community.office365.com/en-us/forums/154.aspx.
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thank you for your understanding and support.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How can I send an email from Sharepoint Online using sandbox solution?

    How can I send an email from Sharepoint Online using sandbox solution?
    If possible I do not want to use workflow.
    Is It possible to do it without using workflow?

    hello Steven Andrews,
    when any user sends a message using contact us page in SharePoint online.
    1. We are inserting item in Contact Us List . - This is working fine
    for anonymous users also. We have used Office365 anonymous codeplex wsp and it is working fine. Anonymous user is able to insert new record in the Contact Us List.
    2. Once, new record is inserted in Contact Us list, we want to fire email notifying thanks to the user on his email id as well as to our company x person for notification of new inquiry. 
    We tried using Workflow having impersonation step for  anonymous user but it is not working for Anonymous users. Workflow is able to sent the email if someone logged into system but not working for Anonymous user although workflow is getting started
    but not able to send email although used Imperonsation step.
    We are stuck into implementing second step.

  • Getting duplicate emails from SharePoint Report Library subscription.

    Getting duplicate emails from SharePoint Report Library subscription.
    Users are subscribed for each item in Report Library and it is scheduled to send email at 3 PM every day.
    But, intermittently users are getting duplicate emails.
    Please let me know on how to troubleshoot...

    If you have Exchange, you can track the email from there to see if that yields any value. You can also turn up the diagnostic logging in Central Admin -> Monitoring -> Configure diagnostic logging -> SQL Server Reporting Services, and selecting:
    Report Server Email Extension
    Report Server Schedule
    Report Server Subscription
    Turn them up to Verbose in the Trace log, then monitor the ULS log when you identify a user who has received duplicate emails.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How can i read outlook emails (from my Dell) on my mac?

    Hi!  I have saved all my outlook emails from my PC to a hard drive and want to view them on my macbook.  Do i have to buy the full office/outlook software package or is there another way to read them?
    I have word and xls on my mac from buying the student office package... but want to avoid buying it all again if i can just read the emails on another reader or just buy the outlook email software...
    Thanks
    Graham

    can annyone assist me whit this problem?
    Not without providing more information about the type of email account (POP3, IMAP, or Exchange) and what settings you use in the account

  • How do i transfer outlook emails from pc to mac

    I have bought a new Macbook Air and I want to transfer my Outloo emails from my windows pc to Outlook on my macbook air.
    GeoffShack

    You should also ask this in the MacBook Air forum. This is the forum for the white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_air

  • How do I move Outlook email from Windows to iMac

    I have decided to move from Windows (Vista) to iMac (Mavericks) and need to move all my email from my Windows PC (Outlook 2010) to iMail. 
    I've found several suggestions on the internet including various software applications for converting from one to the other although most seem to indicate problems with lost emails.  Is there a recommended method from Apple which works?
    Any help appreciated.
    Alan

    Hi Scribeswtr,
    If you are storing your emails locally on your Windows machine and would like to move them to your new Mac, you may find the following article helpful:
    Mac OS X Mail: How to transfer downloaded email from a non-Mac computer
    http://support.apple.com/kb/ht1534
    Regards,
    - Brenden

  • Button in outlook email from WF

    Hi All,
    I am sending a email from WF to Outlook with the hyperlink for SBWP (SAP Inbox). When i click on hyperlink it does open SBWP in HTML version but the workitems are not showing any buttons in there. But when i open the same workitem in SAP SBWP i do see all the options in form of buttons.
    Could anyone please help me out with this? Also i want to open SAP GUI for windows.
    Thanks,
    Karuna

    Hi,
    I have been reading some post. Do we have to have UWL to have the buttons to show up from email link? UWL (Universal WorkList) is with portal? Buttons do not show up in the HTML version of SAP?
    Thanks,
    Karuna

  • Sending alert emails from SharePoint

    Hi all,
    I'm having trouble sending emails from SP 2013. Can someone explain me in detail how to connect SP 2013 with Exchange 2010? The CRM and Exchange are located on two different servers.
    Vlastimir Sindelic

    With Exchange 2010, what you want is an Anonymous Receive Connector. In SharePoint, under Central Admin -> System Settings -> Outgoing email settings, you would specify the DNS name for the IP that is tied to the Anonymous Receive Connector.
    Based on the defaults, you will need to add a second IP address to the Exchange server in order to support the Anonymous Receive Connector, and bind the Connector to that IP address.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • SharePoint 2010 User Integration with Exchange 2010 New Users Created as Hidden and Later Unhidden not receiving email from SharePoint

    When we have a new employee transfer to us from another department, their email is created and hidden until they actually make the transfer so they don't have two different email addresses in our global address list.  When the transfer is made, the
    email address is unhidden, but then we are unable to send emails to them from sharepoint 2010 without doing an IISReset.  We are using Exchange 2010.  Does anyone have suggestions on how to alleviate this issue?

    Hi,
    I have done a test, no matter the email address is hidden or not, we can both send email to the email address in the same domain.
    How was the new employee from another department transferred to your department?
    Whether sending emails to them need do an IIS Reset everytime.
    Here is a similar post, you can take a look at:
    https://social.technet.microsoft.com/forums/sharepoint/en-US/6a9043bb-2055-46a9-8e76-8b2698c1dbe5/user-not-receiving-sharepoint-emails
    Best Regards,
    Lisa Chen

  • Send email from SharePoint Page link

    I have a business scenario where there are names in sharepoint web page.
    When a name is clicked, it should launch a hosted infopath form page with prepoluated value in the to and from boxes.
    Then the user can click on hte submit button and the request will be sent as an email to the person in the To box.

    Hi exploreIT,
    So as per your requirements, you need an infopath form associated with the names. It seems like the title of the list item would be person's name. When you click on the Name (Title) it would launch the Infopath form associated to that item.
    You can create a list and customize the form with InfoPath. Create Data connection to send email from the infopath when it is submitted. Refer to this link:
    https://support.office.microsoft.com/en-us/article/Submit-form-data-in-an-e-mail-message-99a4b32c-1512-4ff2-8d3b-c7285300a931?CorrelationId=a1d98481-14cd-4257-ac57-19c57004d74a&ui=en-US&rs=en-US&ad=US
    Customize form to populate the title in the To field and using GetUserProfile.asmx to populate the From field (as the person filling the form). Now only work left is to create the list items with the names (title). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Sending large number of emails from SharePoint

    Hello,
    I am in a situation where we have to develop a solution using client side/ootb features of SP 2013 to send emails to a large number of users from a SharePoint list. The list will have 10000+ user information logically grouped. The user should be able
    to select anyone or many groups to send emails notification. Each group can contain close to 5000+ user emails. The list can contain email ids of people outside the organization so SP groups cannot be used. Can you suggest a clean solution that will not
    have a serious performance impact? Nintex workflows can also be considered if it will not affect the performance and if it is reliable in this situation. Appreciate any pointers/approach.
    Thanks,
    Aj
    aju

    Hi
    create a powershell script to send these mails.
    http://www.ehow.com/how_8510132_send-email-powershell.html
    If you need more details, let me know
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • How do I get Outlook Email from Exchange Server configured on iPhone?

    My business email is hosted on MS Exchange Server via Outlook and is distributed to my networked PC and VPN home PC and laptop. My IT manager has enabled IMAP on the Exchange Server. I am unable to get my email account on the iPhone to receive or send mail through my Server. My domain names have been entered in the format "exchange.[domainname].com, and my user ID and password has been input for both incoming and outgoing email. The iPhone cannot seem to talk to the server and retrieve or send mail. Does anyone know what to do on the iPhone to be able to communicate with the server? (I am aware of the various limitations of the iPhone vs. Windows Smart Phones in terms of being able to use Microsoft Push Email and to be able to synch calendars, contacts etc. with a corporate server and/or multiple computers. Hopefully Apple will license ActiveSync for the iPhone to provide for this functionality, as recently rumored on a few blogs.)

    Thanks for your response. I've used the path that I had successfully used for years with my Windows Smartphone to no success. Neither advanced Apple telephone support nor my IT guy could get this to work. I have implemented a workaround to have my server automatically forward my emails to a new Yahoo account which then pushes to my iPhone. Definitely an unsatisfactory and incomplete solution, however.
    Editorial comments for Apple: Windows ActiveSync was so much more sophisticated in terms of being able to deal with server-based email, contacts, calendar and for users with multiple computers - i.e. office, home and laptop. I would have expected Apple to introduce something at least as functional and sophisticated or to licence ActiveSync. My user capabilities are substantially downgraded in these areas with my new iPhone and absent a quick software upgrade or licence of ActiveSync I will be unable to function productively with my iPhone. While we're at it, Apple, with my multiple email accounts set up on the iPhone, which is a great feature, I have no easy way to tell in which account to find a new email. I am forced to update the inbox in every single account to try to find where my new mail is going - some new mail indicator next to the account name (as opposed to showing how many unread emails exist with each account) needs to be implemented. The phone hardware, other than the batter - which doesn't even last me for the full course of a workday - is great, but software has only gotten to about 75% of where it needs to be.

  • Can't erase ms outlook email from i phone

    this happened before, but i can't remember how i fixed it. anyone run into this problem?

    Does this help?
    "Set the default email account: Choose “Mail, Contacts, Calendars” > Default Account,
    then choose an account.
    This setting determines which of your accounts a message is sent from when you
    create a message from another iPhone application, such as sending a photo from
    Photos or tapping the email address of a business in Maps. To send the message from
    a different account, tap the From field in the message and choose another account."

  • HT1349 how do I sync Outlook email from my PC Win7 to iCloud (use only iPod Touch)?

    don't have an iPhone... only an iPod Touch

    eMail does not sync with a computer at all, only with your mail server.

Maybe you are looking for

  • Printing the same page multiple times on one sheet

    So last year I wanted to print out minature versions of my card design and I was able to do that by printing out multiple copies of the same thing on one sheet of paper. Of course that was a while ago and now today I can't do the same thing. I rememb

  • Burner stopped working all of a sudden!!!

    I tried to burn a cd today from iTunes and got this error: "itunes can't burn this cd because the burn speed is too fast for your cd burner or media." keep in mind i have not changed any settings since i last successfully burned a disk, and i have no

  • Running 10.5.8 want to upgrade?

    Hey everyone, I've got a white MacBook 2008 running OS X 10.5.8. Never had any problems, runs perfectly fine therefore never really seen the need to upgrade to any newer OS's that have been released. If it aint broke don't fix it! Recently as I'm usi

  • Itunes 7.02 not working with 4gb nano

    I have a 2ND generration Nano that Itunes 7.0.2.16 refuses to see. I have the issue on multiple computers, including a brand new unit I installed Itunes on only for testing this When connecting, Itunes will auto start as if it recognized the Nano was

  • Occassionally when I visit a website, the menu bar becomes gray and hard to read, being restored only bt minimizing and restore.

    Occasionally I have noticed that the menu bar appears a hard to read gray. This seems to occur after a visit to accuweaher.com.. It is reproducible even though both the foreground and background menu bars for the desktop are set to black.