TC SMTP Mail

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

DETAILS

tc_mail_smtp -to=shivraj.zambare@tatatechnologies.com -subject="W12345" -body="c:\


temp\osmail_1000_1_body" -body="c:\temp\osmail_1000_1_body.html" -
server="smtp123.com" -port="587" -charset="ISO-8859-1" -auth="true" -
authId="test2345" -pf="test2345" -connSecurity="None" -ssltlsProtocol="TLSv1" -
user=testuser1@domain1.com] - Teamcenter.SystemServices.ss at
D:/workdir/tc123015_win64/src/core/ss/ss_prcon.cxx(2022)

tc_mail_smtp utility failed to send email with error code = 17029

Solution
The cause for the issue was Connection security value was ‘None’ and TLS Protocol
value was incorrect.

Got correct protocol information from Customer network team. suggested to change
connSecurity value as STARTTLS, ssltlsProtocol value as TLSv1_2 and asked
regenerate password manually using install utility without -e option and use it as
below

-connSecurity="STARTTLS"

-ssltlsProtocol="TLSv1_2"

-regenerated password without -e option

install -encryptpwf -f=D:\PLM\Siemens\Teamcenter14\Security\email_2.pwf

Tested tc_mail_smtp command, it works.

call D:\PLM\Siemens\Teamcenter14\bin\tc_mail_smtp -subject="Teamcenter Dispatcher


Module Service has been stopped" -to=shivraj.zambare@tatatechnologies.com -
server=smtp.office365.com:587 -auth=true -authId=infodba@hyzonmotors.com -pf="D:\
PLM\Siemens\Teamcenter14\Security\email_222.pwf" -connSecurity=STARTTLS -
ssltlsProtocol=TLSv1_2

Send-MailMessage -SmtpServer smtp.office365.com -Port 587 -From


infodba@hyzonmotors.com -To shivraj.zambare@tatatechnologies.com -Subject test -
Body test

$username = "infodba@hyzonmotors.com"
$password = "Law78401"
$sstr = ConvertTo-SecureString -string $password -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential -argumentlist
$username, $sstr
$body = "This is a test email"
Send-MailMessage -To "shivraj.zambare@tatatechnologies.com" -From
"infodba@hyzonmotors.com" -Subject 'Test message' -Body $body -BodyAsHtml -
SmtpServer smtp.office365.com -UseSSL -Credential $cred -Port 587

PS C:\Windows\system32> $username="infodba@hyzonmotors.com"
PS C:\Windows\system32> $username = "infodba@hyzonmotors.com"
PS C:\Windows\system32> $password = "Law78401"
PS C:\Windows\system32> $sstr = ConvertTo-SecureString -string $password -
AsPlainText -Force
PS C:\Windows\system32> $cred = New-Object
System.Management.Automation.PSCredential -argumentlist $username, $sstr
PS C:\Windows\system32> $body = "This is a test email"
PS C:\Windows\system32> Send-MailMessage -To "shivraj.zambare@tatatechnologies.com"
-From "infodba@hyzonmotors.com" -Subject 'Test message' -Body $body -BodyAsHtml -
SmtpServer smtp.office365.com -UseSSL -Credential $cred -Port 587

DETAILS
EPM notify handler's url argument is not working

PR Number: 8807107
Priority: P2
GTAC Urgency: No
PR Matrix: 6a

Software Versions/Configuration:
-------------------------------
Tc 11.2.3 & AWC 3.2

Part: No
AVI: No
Syslog: Yes
Other Files: Yes
Work Around: No

Description of Problem:
-----------------------
EPM notify handler's url argument is not working

Steps to Duplicate
-------------------
In Workflow Designer:
1. Create an workflow with one Do task.
2. Attach "EPM-notify " handler on its Start action of Do task with below arguments
-recipient $PROCESS_OWNER
-attachment target
-url activeworkspace
-subject Test Email

In MyTeamcenter:
3. set "EPM_notify_url_format" preference value as " activeworkspace "

In Active workspace:
4. Send any ItemRevision to the newly workflow at step1.
5. User receive notification mail in outlook

Verified Results:
-----------------
At step5, shows irrelevant link in EPM notify mail.
Open the EPM notify email which will show preferred client to view the task:

a. ActiveWorkspace
b. SHF Client (irrelevant)

Customer does not want "b. SHF Client" link in notify mail.

Expected Results:
-----------------
At step5, EPM notify mail show only activeworkspace link as set in step 2&3.
Duplicated in GTAC Office in OOTB Environment:
---------------------------------------------
Yes

Additional Info:
-----------------
Observation:TC always sends links for SHF Client irrespective of the url argument
value passed upon

Additional data provided:


--------------------------
8807107_01.7z
See Coordinator Notepad for location.

Problem is part specific: No


Problem is OS specific: No

Platform Information-
Problem is platform specific: No

Problem verified on the following platforms and OS versions:


---------------------------------------------------------
Intel Windows 2012 R2

set TEM_SEENVA=Law78401

install.exe -encryptpwf -e=TEM_SEENVA -f=D:\PLM\Siemens\Teamcenter14\Security\


email_222.pwf

You might also like