cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

subscription for blog and providing e-mail alert.

svisveswaraiya
17-Peridot

subscription for blog and providing e-mail alert.

Hi,

Whenever a new post is up in blog an email has to be notified to a particular email id or multiple email id. So in this case should I subscribe the blog thing and then provide alert using manage alert option? 

How can I make it possible?

Please provide some guidance.

 

Thanks,

V Shalini.

5 REPLIES 5

Yes you can subscribe to Add event on Blog and user Marketplace Mail Extension to send an email.

Hi Carles,

I need to add subscription to Blog thing or blog thing shape and how do i connect mail extension to this?

I have already imported mailserver extension.

The source code to be used for subscription has to be entities or snippet?

You just need to go to Subscriptions section on the Blog Thing or ThingTemplate and add the subscription to the corresponding event. 

Hi Carles,

In my blog thing, I gave my source as a mailThing which I created using MailServer template.

and the property I gave as mailalert.

In entites for the blog thing I gave the add event and it appears to be like this.

Is this the right way to do it?

 

Please provide some guidance.

 

Hi Carles,

I created a sample thing and gave its base template as mailserver and in that subscription part

I gave source as the blog which i created and property as description,

in its entities column when i gave AddBlogEntry its source code is :

 

var params = {
sourceType: undefined /* STRING */,
location: undefined /* LOCATION */,
source: undefined /* STRING */,
title: undefined /* STRING */,
content: undefined /* STRING */,
timestamp: undefined /* DATETIME */,
tags: undefined /* TAGS */
};

// result: STRING
var result = Things["KPCL_Blog"].AddBlogEntry(params);

 

Here I donot find any from and to adress to be given to send email.

Am I not supposed to do it this way?

Please help me with this as am missing some concept.

 

Thanks,

V Shalini.

 

 

Announcements


Top Tags