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]
Reply
  • 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]
Children