35

In SharePoint 2013 On Premise we can send emails using REST API where we can utilise SP.Utilities.Utility.SendEmail for doing the job. Note: The recipient is limited to a valid SharePoint user for security reasons. function processSendEmails() { var from = 'asad@Example.com', to = 'someone@Example.com', body = 'Hello World Body', ...


11

John is more or less right, but you need to use SP.KeyValue afaik: 'properties': { '__metadata': { 'type': 'SP.Utilities.EmailProperties' }, 'From': from, 'To': { 'results': [to] }, 'Body': body, 'Subject': subject, "AdditionalHeaders": {"__metadata": ...


6

In order to send a notification email when a new document is uploaded, you can use the out of the box alerts provided by SharePoint. These alerts will send a notification mail to the individual on the event of new item creation in the document library. Use this link to create an alert.


6

Create a new workflow in SharePoint Designer that runs when a new item is created. Use the Add Time to Date action to subtract 1 day from the meeting day to get your reminder date. Then use Pause until Date using your reminder date. After the pause, use Send Email action.


6

For debug purposes, you can do a few things. First is to use the Send-MailMessage cmdlet. This is an alternative to using telnet to test SMTP functionality. If neither of these work, I would take a look at the SMTP server logs. Those logs may show that the SMTP server is dropping the mail due to access permissions (perhaps scoped IP range on a receive ...


6

Looking at the example and your error message, I wonder if AdditionalHeaders needs results (similar to To:) data: JSON.stringify({ 'properties': { '__metadata': { 'type': 'SP.Utilities.EmailProperties' }, 'From': from, 'To': { 'results': [to] }, 'Body': message, 'Subject': subject, 'AdditionalHeaders': { ...


5

Please refer this link for for detailed code, you shall realize the issue. This link is also useful. Also: Make sure that the recipient is limited to a valid SharePoint user for security reasons. Info: You have to provide the sharepoint Id for the specific user in order to send this user an email! The following is the code: function sendEmail(from, to, ...


4

To add to William's comment... When you create a workflow to email several people when a file is added, create a SharePoint Security group and send the email to the group. So... when a new policy document is added... email the "Board of Directors". This way when board members change you don't have to revisit this workflow.


4

You can create Alert on list. So, whenever anyone update item notification will automatically send to particular user. To create Alert on SharePoint list please check this.


4

We faced a similar issue today, all the O365 workflows (sending emails and tasks creation) suddenly stopped working showing the below mentioned error message (Error: SmtpException while sending email: System.Net.Mail.SmtpException: Mailbox unavailable. Access denied, tenant has exceeded threshold.) Our O365 administrator mentioned that 'Microsoft confirmed ...


3

Internally when you create a list item with a field of type hyperlink, it stores the url and the description together, comma delimited. So if you try to just insert the field value into the email body, that is what you'll get. I believe the course of action here is to store the field in a variable, and when you set the variable, you tell it to return the ...


3

If you are using IE11, you will need to add the CA site into your Compatibility View settings list. IE11 doesn't play nice with UPA by default. The dropdowns should re-appear after this., now it works fine


3

I guess you can create a simple workflow to send the email when the form is modified. In order to send email, you can refer this answer.


3

The format of your "To" variable must be an Array witch contains emails (or domain\login). Here, you pass a string witch contains email separated by comma. Try somthing like : var recipients = ["a@b.com","b@b.com"]; sendEmail("abc@def.com",recipients ,"Test Subject","Test Body"); And change the "data" in your query like : data: JSON.stringify({ ...


3

Depending on your requirements you could do one of these options: Add a people picker field to the InfoPath form to directly add the people involved to the form. From there if you push that field to the SharePoint list as a column, you can reference that column in SharePoint Designer's workflow. Add a column or two in the form library that you fill out ...


2

Have you already checked your emailserver? I had many cases where SharePoint sent emails, but the mailservers didn´t accept or drop them by various reasons. You could also check SharePoint logs if there is anything stated in regards of sending the mail.


2

You can use the function I have added and call it like sendEmail("domain\\sender", "domain\\recipient","This is the body","Mail Subject");: var hostweburl; var appweburl; $(document).ready(function () { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sendEmail); }); function sendEmail(from, to, body, subject) { ...


2

I tried it. At least the following workflow is working in SharePoint 2013 on-prem. I created a list called "get mail" with the columns Title -> single line of text Project Manager Name -> Person or Group Field Project Manager Email > single line of text The workflow looks like this: Select from actions "Set field in current item", then ...


2

I agree with the above answer provided by Mancy. In addition to that, if you wanted to add conditional emails to a list or library, you can design a workflow in SPD. If you go to the library and click the Library tab, you can click Workflow Settings, and then Create A Workflow In Sharepoint Designer. This SHOULD redirect you to SharePoint designer, assuming ...


2

You can achieve this functionality using Alert Me. following are the steps. 1: Go To your Calendar 2: Go To "Alert Me"(on Ribbon) --> Set alert on this list 3: Configure your alert. 4: Done


2

After referring to multiple blogs, it seems sending mail from SP 2013 to external users is not possible unless you add then to AD. If you are unwilling to add users to AD then workaround is available : Create 2010 workflow to start manually, add step to send mail. (SP 2010 allows to send mail to external user). Through CSOM start the workflow with ...


2

open SharePoint center admin. Click on Manage service applications. Click on User Profile. then click on Manage User Profiles then Find your user Name Right click on your User & Edit My Profile. Edit user Profile & save it.


2

No, it's not possible to change any of the default functionality of access request emails in SPO.


2

In the SharePoint 2013/2016/Online workflow, you can't send an email to a untrusted account which means recipient is not a valid SharePoint User/Group. You will see a warning if you want to add a group. To send an email to your distribution group you have to enable the Security group settings. And then you need to add this group to SharePoint site to make ...


2

We can send these notification using jquery. Below is the function for the same. sendEmail: function (webUrl, from, to, cc, subject, body, success, failure) { var urlTemplate = webUrl + "/_api/SP.Utilities.Utility.SendEmail"; $.ajax({ contentType: 'application/json', url: urlTemplate, type: "POST", async: false, data: JSON.stringify({ ...


2

One possible option could be is to set an alert (List>Alert Me) rather than doing it through workflow e.g., You can set alerts based on the particular view. Below I have selected items 'Due Today' view.


1

I presume you are doing this: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPWeb web = site.OpenWeb()) { string user = web.CurrentUser.Name; } }); When you do that, the current user is System Account. But if you do this should work: SPUserToken token = Web.AllUsers[LoginID].UserToken; SPSecurity.RunWithElevatedPrivileges(...


1

To overcome this issue , you need to use ExecuteOrDelayUntilScriptLoaded method that used to delay a function call unless a particular script (SP) is loaded. To use ExecuteOrDelayUntilScriptLoaded do the following : <script type="text/javascript"> function yourfunction(){ } ExecuteOrDelayUntilScriptLoaded(...


1

One way to do this would be to run the Pause Until action and set the date you'd like to send the email. You might want to create a workflow parameter and calculate, for example, due date minus 2 days. I'm assuming by the way you have worded the question that you are comfortable creating the email actions within designer through custom actions.


1

For outgoing email, you can set it through PowerShell. $site = Get-SPSite https://siteUrl $site.OutgoingEmailAddress = 'myAddr@example.com


Only top voted, non community-wiki answers of a minimum length are eligible