Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Jackie Nagel 3 posts 23 karma points
    Mar 19, 2012 @ 10:18
    Jackie Nagel
    0

    Issue with sending confirmation email after payment

    Hello! :-)

    I'm having some issues getting this functionality to work. After the payment is completed the cart is emptied and we're retrieving the purchase order via xslt and lastly attempting to send the email.

    We're using the following XSLT to get the purchase order and send the email:

    <xsl:variable name="purchaseOrder" select="CommerceLibrary:GetPurchaseOrderByPaymentReference($orderid)"/>
    <xsl:variable name="orderName" select="$purchaseOrder/@orderGuid"/>
    <xsl:variable name="result" select="CommerceLibrary:SendEmail($purchaseOrder/@emailAddress,'OrderConfirmation', $orderName)"/>

    We're correctly retrieving the order but we're getting this error in the result of the SendEmail function:

     

    <errors><error>The parameter 'address' cannot be an empty string.

    Parameter name: address</error></errors>

    What can cause this? I've set up the SMTP information in the web.config, and the Checkout.config is also set up accordingly to the guide on publicvoid.dk.

     

    Thanks in advance for the help, it's much appreciated! :-)

     

     

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 21, 2012 @ 11:31
    Søren Spelling Lund
    0

    You don't have to use the XSLT API to send the e-mail. It's automatically done for you when the payment gateway accepts payment and performs a callback to the store server.

    Sending E-mail using uCommerce sheds some light on how it works.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 21, 2012 @ 12:53
    Søren Spelling Lund
    0

    Are you sure you're getting an e-mail address with $purchaseOrder/@emailAddress expression?

  • Jackie Nagel 3 posts 23 karma points
    Mar 21, 2012 @ 13:26
    Jackie Nagel
    0

    Hello Søren! :-)

    I wasn't retrieving the correct mail, and it's not also sending the correct email - but it's only working for some reason if I'm setting the hostnames to be of the language type "English (United States)".

    But thanks alot for the solution, just need to get my head around fixing the language layer stuff now! :-)

  • Jackie Nagel 3 posts 23 karma points
    Mar 21, 2012 @ 13:33
    Jackie Nagel
    0

    And it's also fixed now -

     

    Thanks alot for the guidance - it seems like the fresh eyes helped quite a lot on the problem.

     

    Have a nice day! :-)

Please Sign in or register to post replies

Write your reply to:

Draft