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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

SEND EMAIL with WINDCHILL

ptc-4745242
1-Newbie

SEND EMAIL with WINDCHILL

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 9
BryanK
14-Alexandrite
(To:ptc-4745242)

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.

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.

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.

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?

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.

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

My windchill server is wnc.2t.local mail server is smtp.2t.local

If i create user that is not in active directory (usr - zero@yandex.ru) and try to E-mail Page in methodserver.log i see something like this (Exchange server have no user entry for zero@yandex.ru😞

2014-05-26 12:52:26,586 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: useEhlo true, useAuth false

2014-05-26 12:52:26,586 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: trying to connect to host "smtp.2t.local", port 25, isSSL false

2014-05-26 12:52:26,587 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 220 smtp.2t.local Microsoft ESMTP MAIL Service ready at Mon, 26 May 2014 12:52:24 +0400

2014-05-26 12:52:26,587 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: connected to host "smtp.2t.local", port: 25

2014-05-26 12:52:26,587 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 -

2014-05-26 12:52:26,588 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - EHLO wnc.2t.local

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250-smtp.2t.local Hello [10.20.11.55]

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250-SIZE

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250-PIPELINING

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250-DSN

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250-ENHANCEDSTATUSCODES

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250-AUTH

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250-8BITMIME

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250-BINARYMIME

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250 CHUNKING

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Found extension "SIZE", arg ""

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Found extension "PIPELINING", arg ""

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Found extension "DSN", arg ""

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Found extension "AUTH", arg ""

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Found extension "8BITMIME", arg ""

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Found extension "BINARYMIME", arg ""

2014-05-26 12:52:26,589 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Found extension "CHUNKING", arg ""

2014-05-26 12:52:26,590 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: use8bit false

2014-05-26 12:52:26,590 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - MAIL FROM:<username@2t.local>

2014-05-26 12:52:26,591 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250 2.1.0 Sender OK

2014-05-26 12:52:26,591 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - RCPT TO:<zero@yandex.ru>

2014-05-26 12:52:31,606 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 550 5.7.1 Unable to relay

2014-05-26 12:52:31,606 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Invalid Addresses

2014-05-26 12:52:31,606 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: zero@yandex.ru

2014-05-26 12:52:31,606 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - DEBUG SMTP: Sending failed because of invalid destination addresses

2014-05-26 12:52:31,607 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - RSET

2014-05-26 12:52:36,621 INFO [ajp-bio-8010-exec-1] wt.system.out tt504996 - 250 2.0.0 Resetting

If i try to E-mail Page from user username@2t.local to username_1@2t.local (all this users are exist in LDAP and have Exchange mailbox) i see only this:

INFO [NotificationQueue.PollingThread] wt.system.out wcadmin - Email address 'username_1@2t.local' is invalid.

INFO [EMailQueue.SchedulingThread] wt.system.out wcadmin - EMailMessage *WARNING* a message was submitted without any valid recipients

I think Windchill have some filter, because method server don't connect to mail server if mail adress have "@2t.local" text.

I solved my problem. Problem was in file Windchill\codebase\wt\mail\EMailMessage.class. With Class Edit program (ce2.23) i found e-mail validation string ^[_a-zA-Z0-9'-]+(\.[_a-zA-Z0-9'-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$

and add |2t|local

^[_a-zA-Z0-9'-]+(\.[_a-zA-Z0-9'-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name|2t|local))$

Maybe it help somebody.

It looks like you editted the default email regex in the class file. You can acheive the same result without modifying the class file by adding the property wt.mail.validation.regExp to wt.properties. Add the property:

wt.mail.validation.regExp=^[_a-zA-Z0-9'-]+(\.[_a-zA-Z0-9'-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name|2t|local))$

To wt.properties, and Windchill will use that regex instead of the default one in the class file. That will allow you to send out emails to the @2t.local domain without needing to modify the class file.

Top Tags