DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  SMTP Email Send

    Posted Wed March 03, 2021 08:50 AM

    Hi ,

    I want to connect to smtp server to send mail which having authentication user-name /password also i have one xslt but not sure how pass usrname and password.

    xslt

    <?xml version="1.0" encoding="UTF-8"?>

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dp="http://www.datapower.com/extensions" version="1.0" extension-element-prefixes="dp">

    <xsl:output omit-xml-declaration="yes" />

    <xsl:template match="/">

    <xsl:variable name="username" select="'inoseerwed'" />

    <xsl:variable name="password" select="'passxxxxx'" />

    <xsl:variable name="encodedusername" select="dp:encode($username,'url')" />

    <xsl:variable name="encodedpassword" select="dp:encode($password,'url')" />

    <dp:url-open response="ignore" target="{concat( 'smtp://', dp:encode('xxxxx','url'), '/?Recpt=', dp:encode('myemail','url'), '&amp;Sender=', dp:encode('myjobmail','url'), '&amp;Subject=', dp:encode('subject','url'), '&amp;Domain=', dp:encode('datapower.ibm.com','url'), '&amp;MIME=false' )}">

    <xsl:text>hiiiiii</xsl:text>

    </dp:url-open>

    </xsl:template>

    </xsl:stylesheet>

    regards ,

    mayur



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: SMTP Email Send

    Posted Thu March 04, 2021 10:01 AM

    Hi Mayur,

    did you check out the Knowledge Center examples? I think they give a good example on how to include the auth info.

    https://www.ibm.com/support/knowledgecenter/SS9H2Y_10.0/com.ibm.dp.doc/url-open_smtp_element.html

    --HP



    #DataPower
    #Support
    #SupportMigration


  • 3.  RE: SMTP Email Send

    Posted Mon March 15, 2021 06:45 PM

    Hi,

    Defined credentials inside User Agent basic authentication policy. The credentials should be defined using format which is defined Knowledge center:

    https://www.ibm.com/support/knowledgecenter/SS9H2Y_10.0/com.ibm.dp.doc/url-open_smtp_element.html

    Thanks



    #DataPower
    #Support
    #SupportMigration