Page 1 of 1

Wish-List e-mail

Posted: Tue Jul 21, 2009 1:21 pm
by krittleb
I just had a customer try to e-mail her wish-list. It ended up in an error because "no such user exists". I am assuming this is because whatever default sender account is linked to that message is not one we created.

There is not a "wish-list" default message in the e-mail templates nor is there even a trigger, so I don't know where this message is originating from or how to edit the settings.

Re: Wish-List e-mail

Posted: Wed Jul 22, 2009 4:36 am
by mazhar
This message is being created on the fly in ConLib/SendWishListPage.ascx.cs file. Edit this file and check following method

Code: Select all

private String GetMessage()
    {
        Wishlist wishlist = Token.Instance.User.PrimaryWishlist;
        String wishlistUrl = Token.Instance.Store.StoreUrl + "ViewWishlist.aspx?WishlistId=" + wishlist.WishlistId;
        String wishlistLink = "<a href=\"" + wishlistUrl + "\">" + wishlistUrl + "</a>";
        StringBuilder messageFormat = new StringBuilder();
        messageFormat.Append("Dear Friend,\n\n");
        messageFormat.Append("I created a WishList at " + Token.Instance.Store.Name + ".\n\n");
        if (wishlist.ViewPassword.Length > 0)
        {
            messageFormat.Append("The password for my WishList is " + wishlist.ViewPassword + ".\n\n");
        }
        messageFormat.Append("Please visit the link below to view the list.\n");
        messageFormat.Append(wishlistUrl);
        messageFormat.Append("\n\nThank you!");
        return messageFormat.ToString();
    }