Skip to main content
1-Visitor
November 12, 2012
Question

SEND EMAIL with WINDCHILL

  • November 12, 2012
  • 9 replies
  • 9379 views

Hi people I want to sent some emails by WindChill as well as invitations to some friends of mine to join my project, but I can't send emails. I've found some information but i dont understans at all. Can u help me?

This is the text that u can find in the Helper but I dont know wehere I have to write this code which its talking about.

"For e-mail messages to be sent, some mail servers require that a valid e-mail address be specified in the From header of the e-mail message. Windchill uses the value specified in the wt.mail.from property in the wt.properties file as the default sender of e-mail messages. Similarly, the wt.notify.notificationSenderEmail property is used to specify the e-mail address used as the sender of all event-based notifications. By default, the wt.mail.from property is set to Postmaster@, where is the value specified in the java.rmi.server.hostname property. The wt.notify.notificationSenderEmail property defaults to the value of the wt.admin.defaultAdministratorName property. PTC suggests that the wt.mail.from and wt.notify.notificationSenderEmail properties both be set to the e-mail address of the Windchill administrator or some other authorized user. Many e-mail servers require the use of a fully qualified e-mail address that has verifiable domain components. Specifically, all originator and recipient addresses must be in the form of: @Where is a valid e-mail domain that can be verified using the DNS. Use the xconfmanager to change the wt.mail.from and wt.notify.notificationSenderEmail properties to a value of your choice. From a windchill shell, execute the following command: xconfmanager -s wt.mail.from= -s wt.notify.notificationSenderEmail= -t /codebase/wt.properties -p Where is the location where Windchill is installed, and is the valid e-mail address of an authorized Windchill user"

9 replies

17-Peridot
November 19, 2012

Hi,

Do you know what the mail host is?

You only need to enter the command in on a windchill shell.

It will take care of the rest.

If you dont have access to the windchill server ask the administrator to add the mail host and a valid email adress.

1-Visitor
November 19, 2012

I assume you're going through the UI? Before changing anything, first figure out why they aren't sending in the first place. Look at the method server log for any errors that look mail related. You can try setting the following wt.properties to true: wt.mail.verbose and wt.mail.verboseTransport. Then try to have the system send an email and look at the log again.

1-Visitor
November 20, 2012

All the info already attached is good stuff...

If you already know this info, sorry, just trying to help, and be complete...

In your "wt.propeties" file, there is a property "wt.mail.mailhost=", which needs the server name for your (SMTP) email server. Use the "xconfmanager" utility to make the change to the wt.properties file; do not edit the wt.properties file directly. More information on these two topics in the System Admin guide, known as the "Specialized Admin Guide" in WC10 and WC 10.1.

Once you implement this change, restart your Windchill servers.

With the WC GUI, as a Site Admin, in the "Utilities" GUI, there is the "queue management". Within queue management, verify the "EMailQueue" and "NotificationQueue" are started.

If you verifiy this configuration and queues, at least you know WC knows your SMTP server and the queues used to manage WC emails are go to go.

1-Visitor
May 23, 2014

Hi 2 all. Sorry for my english. I have problem with my windchill and e-mail notifications.

I want to create workflow notification.

1. For the approver and reviewer role in context i add user_1 (email is username@2t.local)

2. In the activity i select "Send Notification"

3. In the notification robot i add "approver" and "reviewer" roles in the "Recipients" tab

4. After i recieved task in home screen, i don't recieved mail to my inbox.

5. After finishing workflow approver and reviewer don't recieved mail.

In my log file i have:

2014-05-23 11:29:52,313 INFO [NotificationQueue.PollingThread] wt.system.out wcadmin - Email address 'username@2t.local' is invalid.

2014-05-23 11:29:53,384 INFO [EMailQueue.SchedulingThread] wt.system.out wcadmin - EMailMessage *WARNING* a message was submitted without any valid recipients

If in the notification robot i add direct e-mail recipient username@2t.local

1. After i recieved task in home screen, i don't recieved mail to my inbox.

2. After finishing workflow approver and reviewer don't recieved mail.

3. After finishing workflow username@2t.local got mail.

What is the problem?

13-Aquamarine
May 23, 2014

Try setting the below in wt.properties, and then restart Windchill:

wt.mail.verbose=true

wt.mail.verboseTransport=true

That will give you a lot more information about what Windchill is doing when it tries to send out an email. That should show you what the problem is.

1-Visitor
May 26, 2014

Thx for your advice, but this options are already set. And i have only this messages

2014-05-23 11:29:52,313 INFO [NotificationQueue.PollingThread] wt.system.out wcadmin - Email address 'username@2t.local' is invalid.
2014-05-23 11:29:53,384 INFO [EMailQueue.SchedulingThread] wt.system.out wcadmin - EMailMessage *WARNING* a message was submitted without any valid recipients