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
  • 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



    [edited by: Jon Ballinger at 9:23 PM (GMT -6) on 27 Apr 2011]
  • 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. 

Reply Children
  • Jon. 

    Do you know if it's possible to have the other printing options turned off when either an email confirmation is chosen from the dropdown or when the Acknowledgment box is checked? We, of course, occasionally accidentally forget to uncheck the boxes at the top of the Print menu when sending email confirmations. I'm trying to troubleshoot getting rid of that risk.

    Thanks. 

  • Hi Adria,

    Not that I am aware of .  But you might want to investigate have an interceptor for this purpose.  For example you might be able to have an interceptor plugin fire on an order save  and it would go an automatically send the email confirmation.  This would remove the need to go into print tickets at all to send the email confirmation.

    Jon