Clarity

  • 1.  Specify Display Name shown as a sender of Email notification

    Posted Jul 28, 2017 04:00 AM

    Hello,

     

    we have got two environments (test and prod). On test, after we receive email notification from CA PPM we see CA PPM - TEST as a sender of the email - a "human readable" name, but on production the sender is shown as ca_ppm@company.com.

     

    Is there any possibility how to set the "diplay name" of the sender in CA PPM or anywhere else?

     

    Thank you all and Regards,

    Martin



  • 2.  Re: Specify Display Name shown as a sender of Email notification
    Best Answer

    Broadcom Employee
    Posted Jul 28, 2017 05:40 AM

    HI Martin,

     

    Unfortunately not as in CSA we have default sender address and not name

     

     

     

    Regards

    Suman Pramanik 



  • 3.  Re: Specify Display Name shown as a sender of Email notification

    Posted Jul 28, 2017 05:56 AM

    Thank you Suman, I thought so.

     

    Regards,

    Martin



  • 4.  Re: Specify Display Name shown as a sender of Email notification

    Posted Jul 28, 2017 03:01 PM

    Assuming PPM is using javax.mail and the From address is base on javax.mail.internet.InternetAddress, then any RFC 822 address form should be valid.

     

    emea152@ca.com

    EMAA 152 <emea152@ca.com>

    "EMEA, 152" <emea152@ca.com>

     

    For this to work, the CSA would need to except a valid RFC 822 address which might not be the case.

     

    RFC 822 - STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES (RFC822) 

     

    See appendix A for address examples.

     

    Just thoughts,

    Gene



  • 5.  Re: Specify Display Name shown as a sender of Email notification

    Broadcom Employee
    Posted Jul 29, 2017 11:29 AM

    Hi Gene,

     

    I haven;t tried the RFC 822 format yet, I might have to check and confirm if it actually works 

     

    Regards

    Suman Pramanik 



  • 6.  Re: Specify Display Name shown as a sender of Email notification

    Posted Jul 31, 2017 05:48 AM

    Hi Gene,

     

    I tried your assumption. I entered TEST_USER <user@domain.com> in the property file as a defaultSenderAddress.

     

    And when I tried to restart services of CA PPM I got following error message:

    [Fatal Error] :43:144: The value of attribute "defaultSenderAddress" associated with an element type "mailServer" must not contain the '<' character.
    Warning: document is invalid: /app/ppm/clarity/config/properties.xml

     

    So I deleted <> characters. After that I was able to restart CA PPM services, but no email notification was send to me.

     

    So I'm afraid that it does not work

     

    Thank you and Regards,

    Martin



  • 7.  Re: Specify Display Name shown as a sender of Email notification

    Posted Jul 31, 2017 10:23 AM

    Did you try escaping the <> in the email address?

     

     

      <mailServer host="localhost" username="" password=""
      fromAddress="" sendProtocol="smtp" fetchProtocol="imap"
      defaultSenderAddress="user one &lt;username@yourdomain.com&gt;"
      useAuthentication="true"/>

     

    V/r,

    Gene



  • 8.  Re: Specify Display Name shown as a sender of Email notification

    Posted Jul 28, 2017 05:49 AM

    Hi Martin,

     

    As Suman specified OOTB, as present in CSA , the present ask is not feasible.

    This could be achieved using GEL script, wherein you could modify the email body, or incorporate html based email body.

     

    An interesting read on the same is on the following link, if you would like to go down that path:

    XOG and GEL Email Clarity v13 

    GEL EMAIL CC 

    Learn with Rego | XOG Error, Changes Invisible in Apps, DWH Parameterized lookup, Team Member Rights, & Retain Formatting of Large String in GEL Email 

     

    A sample script would be as follows, which you could refer to in addition to the above links:

     

    <gel:script xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:core="jelly:core"
    xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
    xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:sql="jelly:sql"
    xmlns:xog="http://www.niku.com/xog"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <gel:email from="FromAddress"
    fromName="Email Tester"
    to="ToAddress"
    subject="Testing Your EMAIL Functionality">
    It works well.
    </gel:email>

    </gel:script>

     

     

    Regards,

    Samik



  • 9.  Re: Specify Display Name shown as a sender of Email notification

    Posted Jul 28, 2017 06:02 AM

    Hello Samik,

     

    Thank you for your reply, I know about this possibility via GEL scripts, but we need to achieve the same for OOTB notifications. It's not possible to set it up, as Suman mentioned.

     

    Regards,

    Martin