This content has been marked as final. Show 11 replies
Did you customize the server session id JSESSIONID?
ATG uses default JSESSIONID to recognize the session to render the template.
If you customize it then update the same in one of the ATG resource file.
If you need I can send the resource file.
Thanks for the response.
We did NOT customize sessionId stuff. But we are stripping off atg sessionId from the URL to support SEO url rendering.
I can NOT suspect that being an issue, as I am able to see emails with data if I send the email from the app from localhost. Same thing is NOT working from the preview site.
I asked my colleague to see put back the sessionId in the URL to test it. Only tomorrow I can update you on this.
Meanwhile, if you have any more thoughts, please let me know.
I guess the stripping off the sessionid could be the issue.
ATG emailtemplateinvoker renders the template jsp by calling the jsp with jsessionid in the url to recognize the session when processing the jsp.
If you stip that off then this could likely cause it.
I could able to move the code to server and test the email functionality. Still same issue.
As I mentioned, the emails are working fine on local, but data is missing in the emails if they are sent from the Preview site. :-(
- Prakash Alluri.
Below is some log from the server. The session Id is same. Not sure, why I am missing templateParameters here. Because of this, the dynamic values are not displaying in the email.
2011-07-07 15:01:37,333 INFO [nucleusNamespace.atg.userprofiling.email.TemplateEmailSender] DEBUG sendEmailMessage invoked.
2011-07-07 15:01:37,350 INFO [nucleusNamespace.atg.userprofiling.email.TemplateEmailSender] DEBUG created session atg.servlet.sessiontracking.GenericHttpSession@324211c3 with id 16CBAC6D58D85986714C287A3AEC9994 parent session id = 16CBAC6D58D85986714C287A3AEC9994, cookieString = JSESSIONID=16CBAC6D58D85986714C287A3AEC9994
2011-07-07 15:01:37,351 INFO [nucleusNamespace.atg.userprofiling.email.TemplateEmailSender] DEBUG rendering path info /email/templates/send_to_friend.jsp;jsessionid=16CBAC6D58D85986714C287A3AEC9994
2011-07-07 15:01:37,363 INFO [nucleusNamespace.atg.userprofiling.email.TemplateEmailSender] DEBUG rendered template has content type text/html;charset=UTF-8
2011-07-07 15:01:37,378 INFO [nucleusNamespace.atg.userprofiling.email.TemplateEmailSender] DEBUG Preparing to create message with text: <table align="center" cellpadding="0" cellspacing="0" border="0" width="550" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000"> <tbody> <tr> <td height="3" bgcolor="#CCCCCC" colspan="2"></td> </tr> <tr> <td colspan="2"> <table
Can you check if you are sending the parameter "sendEmailInSeparateThread" as false while calling the TemplateEmailSender method sendEmail?
I am using TemplateEmailSender.sendEmailMessage(TemplateEmailInfo pEmailInfo, java.util.Collection pRecipients); method to send email.
Could you try to call sendEmailMessage(TemplateEmailInfo pEmailInfo, java.util.Collection pRecipients, false, false) and verify if it resolves your problem?
I tried it, but no use.
Okay, we could able to figure out the issue and resolved it. This is similar to what explained here in this link: https://community.atg.com/message/4070. We reverted the changes to server.xml file and it worked for us.
Thanks to everyone, who responded to help me out.
We are not able to open your link...( https://community.atg.com/message/4070 )
I tried all approach which is there in Re: TemplateParameters values in the TemplateEmailInfoImpl are losing..
Can you please provide us the solution ASAP??