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

How to test Send Email with ThingWorx 6.5

Highlighted
Level 3

How to test Send Email with ThingWorx 6.5

Hi,

I am newbie to ThingWorx and I want to test how can i send an email using ThingWorx 6.5.

For the same I am want to know further steps to be followed, till now I did below basic steps,

  1. Create a Thing
  2. Filled "General Information"
  3. Select The "Thing Template" attribute value as "MailServer"
  4. Go to "Services" Tab
  5. Click on down arrow in Services
  6. Click on Test "SendMessage"
  7. After opening popup window, fill following required fields,
    • subject
    • to
    • from
    • body
    • Click on Test
    • I am getting below Error
    • Unable to Invoke Service SendMessage on Test-email : Could not connect to SMTP host: smtp.gmail.com, port: 25

Please suggest, what are all the steps need to be followed to send a successful Email/message.

Regards,

Mahesh

9 REPLIES 9

Re: How to test Send Email with ThingWorx 6.5

Hi Mahesh, have you already tried the ThingWorx Tutorial on this? It's covered quite extensively. Additionally there's also a Mail Extension available which you might want to have a look at.

Hope this helps.

Re: How to test Send Email with ThingWorx 6.5

Hi Sushant,

Thanks.

Regards,

Mahesh

Re: How to test Send Email with ThingWorx 6.5

Hi Sushant,

I did same as mentioned in tutorial but still facing same issue,

Unable to Invoke Service SendMessage on ACMEVendingNotifier : Could not connect to SMTP host: SMTP.gmail.com, port: 25

Not sure, why and how it is appearing.

Regards,

Mahesh

Re: How to test Send Email with ThingWorx 6.5

Mahesh, could you share the configuration page details from your mail thing? concerning the SMTP, whether or not you are using TLS/SSL and port etc

Thanks

Re: How to test Send Email with ThingWorx 6.5

Mahesh, can you verify if that port is not blocked in your firewall/ network? A simple way to test this is running this on your command prompt -

telnet smtp.gmail.com 25

Re: How to test Send Email with ThingWorx 6.5

Hello Mahesh,

There is a known issue with the Mail Server Extension and VPNs. Please review this KCS article and let me know if you have further questions on this: https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS236135

Thanks!

Tori

Re: How to test Send Email with ThingWorx 6.5

Hi,

I tried with exploring following,

1. Check for port

    tried with suggested command and getting below error,

    Connecting To SMTP.gmail.com...Could not open connection to the host, on port 25: Connect failed

    Tried with below port also but result is same with port number changed.

2. For configuration, I am attaching screenshot here.Configuration-page.jpg

Please suggest.

Regards,

Mahesh

Re: How to test Send Email with ThingWorx 6.5

Mahesh, if the port is blocked you won't be able to communicate on that - could you try opening this port both in Incoming and Outgoing in your firewall?

Re: How to test Send Email with ThingWorx 6.5

Hey there, 

 

why I can not connect my ThingWorx Composer to an internal SMTP server? I can connect it with telnet. 

 

50e6f43d-429c-4704-8a52-b99eeb5b7558.png