Order Email Confirmations

Hi Tessiturians,

I've customized Order Email Confirmation that our Education department sends to schools attending a concert.  But sometimes they need a printed copy of this email - is there a way to send this email to a printer from within Tessitura?

Thanks, Sabina.

 

 

 

Parents
  • Jon,  thanks again!  I pasted your first solution into .aspx template for education ( changed the IP address and from/to : ).  Is there a specific place in the .aspx template to place this code? 
    Sabina


    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Jon Ballinger
    Sent: Thursday, April 28, 2011 6:05 AM
    To: Sabina Spilkin
    Subject: Re: [Tessitura Technical Forum] Order Email Confirmations

    Hi Sabina,  I had a chance to test out the first example and it works.  One thought I had with either method is that you could use a custom field in the order as the email addresses to be copied on.  Then  use that data in the template to send the email. 

    From: Jon Ballinger <bounce-jonballinger5072@tessituranetwork.com>
    Sent: 4/27/2011 9:18:05 PM

    Hi Sabina,

    A couple things come to mind.  First I would think there would be a template for just education so that other types of orders  would  not send a copy of the email.  Then in your education template there are two things I might try to do.  First is in the template aspx page I would try to create and fire off an email with in it.  createatig a new message with the order information.  Something like the following:

    <%@ Import Namespace="System.Web.Mail" %>
    <%
    MailMessage objMail = new MailMessage();
    objMail.From = "jballinger@mccarter.org";
    objMail.To = "jballinger@mccarter.org";
    objMail.Subject = "Response from website";
    objMail.Body = "This an edu order" + OrderData.OrderNumber ;
    SmtpMail.SmtpServer = "192.169.1.1;
    SmtpMail.Send(objMail);
    %>

    My second thought if this does not work is to execute a local procedure from the email confirmation and have the local procedure send an email out to the edutcation recipient with the proper information.  Thie code in the template file could be something like:

    <%
    Tessitura.WebAPI.Tessitura tess = new Tessitura.WebAPI.Tessitura();
    string sessionkey = tess.GetNewSessionKey("");
    tess.ExecuteLocalProcedure(sessionkey, 1, "@ORDER_NO=" + OrderData.OrderNumber +"@RECIPIENT=jballinger@mccarter.org");
    %>

    Hope this helps,

    Jon




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!
  • Sabina,  Attached is my working example granted there are some extra calls to the webapi's executelocalprocedure that would not apply. But you can see where i have the email code in  place.

Reply Children