Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hello community, we are facing a very weird issue:
Windchill is trying to send emails from the user account who is triggering the notification or sending the page link.
Our company (CompanyA) is giving Windchill support to CompanyB. We have set our email server using the following:
=======================================================================================
==============================================================================================
Bellow you can see a piece of the method server log:
==============================================================================================
DEBUG SMTP: MessagingException while sending, THROW:
com.sun.mail.smtp.SMTPSendFailedException: 554 Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-1: user@companyB.com
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2095)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1301)
at com.infoengine.webject.msg.SendMail.invoke(SendMail.java:485)
at com.infoengine.procunit.webject.WebjectProcessor.invokeWebject(WebjectProcessor.java:624)
at com.infoengine.procunit.webject.WebjectProcessor.processTask(WebjectProcessor.java:210)
at com.infoengine.SAK.Webject.invoke(Webject.java:491)
at com.infoengine.compiledTasks.file.opt.ptc.Windchill_12$2e0.Windchill.tasks.wt.mail.sendmail$2exml.invoke(sendmail$2exml.java:751)
at com.infoengine.SAK.Task.invoke(Task.java:1806)
at com.infoengine.SAK.Task.invoke(Task.java:1714)
at wt.mail.EMailMessage.submitMessage(EMailMessage.java:1560)
at wt.mail.EMailMessage.submitMessage(EMailMessage.java:1106)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at wt.queue.ScheduleQueueEntry.execute(ScheduleQueueEntry.java:264)
at wt.queue.ScheduleQueue.execEntry(ScheduleQueue.java:344)
at wt.queue.ScheduleQueue.execEntries(ScheduleQueue.java:465)
at wt.queue.ScheduleQueueThread.processReadyEntries(ScheduleQueueThread.java:284)
at wt.queue.ScheduleQueueThread.run(ScheduleQueueThread.java:92)
DEBUG SMTP: use8bit false
MAIL FROM:<user@companyB.com>
250 Ok
RCPT TO:<user@companyB.com>
250 Ok
DEBUG SMTP: Verified Addresses
DEBUG SMTP: user@companyB.com
DATA
354 End data with <CR><LF>.<CR><LF>
Date: Sun, 25 Sep 2022 21:46:32 +0000 (GMT)
From: user@companyB.com
To: user@companyB.com
===================================================================================
We have fixed this issue for workflow related emails with the following property:
Solved! Go to Solution.
The modification you did in the SendMail.xml is not correct. You have to keep the quotes:
<ie:param name="FROM" data="windchill.prod.noreply@companyA.com" default="<%=DEFAULT_FROM%>"/>
Hi,
Please specify the version of Windchill you are working with.
The modification you did in the SendMail.xml is not correct. You have to keep the quotes:
<ie:param name="FROM" data="windchill.prod.noreply@companyA.com" default="<%=DEFAULT_FROM%>"/>
It seems I also had to remove the commented line for this to work.
Thanks!
Indeed,
that's an XML section here, therefore the comment tags are <!-- blablabla -->
<!-- <ie:param name="FROM" data="${@FORM[0]FROM[0]}" default="<%=DEFAULT_FROM%>"/> -->
<ie:param name="FROM" data="windchill.prod.noreply@companyA.com" default="<%=DEFAULT_FROM%>"/>