{"id":1101590,"date":"2016-04-12T14:43:15","date_gmt":"2016-04-12T21:43:15","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/"},"modified":"2016-04-27T09:35:06","modified_gmt":"2016-04-27T16:35:06","slug":"ticket-email-php","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/","title":{"rendered":"ticket email.php"},"content":{"rendered":"<p>for some reason the email is coming thru with large amounts of white space between each section.  This is straight from your installation file:<\/p>\n<p>&lt;?php<br \/>\n\/**<br \/>\n * Tickets Email Template<br \/>\n * The template for the email with the purchased tickets when using ticketing plugins (Like WooTickets)<br \/>\n *<br \/>\n * Override this template in your own theme by creating a file at [your-theme]\/tribe-events\/tickets\/email.php<br \/>\n *<br \/>\n * This file is being included in events\/lib\/tickets\/Tickets.php<br \/>\n *  in the function generate_tickets_email_content. That function has a $tickets<br \/>\n *  array with elements that have this fields:<br \/>\n *        $tickets[] = array( &#8216;event_id&#8217;,<br \/>\n *                              &#8216;ticket_name&#8217;<br \/>\n *                              &#8216;holder_name&#8217;<br \/>\n *                              &#8216;order_id&#8217;<br \/>\n *                              &#8216;ticket_id&#8217;<br \/>\n *                              &#8216;security_code&#8217;)<br \/>\n *<br \/>\n * @package TribeEventsCalendar<br \/>\n *<br \/>\n *\/<br \/>\n?&gt;<br \/>\n&lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt;<br \/>\n&lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221;&gt;<br \/>\n&lt;head&gt;<br \/>\n\t&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html;charset=UTF-8&#8243; \/&gt;<br \/>\n\t&lt;title&gt;&lt;?php esc_html_e( &#8216;Your registration&#8217;, &#8216;event-tickets&#8217; ); ?&gt;&lt;\/title&gt;<br \/>\n\t&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width&#8221; \/&gt;<br \/>\n\t&lt;style type=&#8221;text\/css&#8221;&gt;<br \/>\n\t\th1, h2, h3, h4, h5, h6 {<br \/>\n\t\t\tcolor : #0a0a0e;<br \/>\n\t\t}<\/p>\n<p>\t\ta, img {<br \/>\n\t\t\tborder  : 0;<br \/>\n\t\t\toutline : 0;<br \/>\n\t\t}<\/p>\n<p>\t\t#outlook a {<br \/>\n\t\t\tpadding : 0;<br \/>\n\t\t}<\/p>\n<p>\t\t.ReadMsgBody, .ExternalClass {<br \/>\n\t\t\twidth : 100%<br \/>\n\t\t}<\/p>\n<p>\t\t.yshortcuts, a .yshortcuts, a .yshortcuts:hover, a .yshortcuts:active, a .yshortcuts:focus {<br \/>\n\t\t\tbackground-color : transparent !important;<br \/>\n\t\t\tborder           : none !important;<br \/>\n\t\t\tcolor            : inherit !important;<br \/>\n\t\t}<\/p>\n<p>\t\tbody {<br \/>\n\t\t\tbackground  : #ffffff;<br \/>\n\t\t\tin-height  : 1000px;<br \/>\n\t\t\tfont-family : sans-serif;<br \/>\n\t\t\tfont-size   : 14px;<br \/>\n\t\t}<\/p>\n<p>\t\t.appleLinks a {<br \/>\n\t\t\tcolor           : #006caa;<br \/>\n\t\t\ttext-decoration : underline;<br \/>\n\t\t}<\/p>\n<p>\t\t@media only screen and (max-width: 480px) {<br \/>\n\t\t\tbody, table, td, p, a, li, blockquote {<br \/>\n\t\t\t\t-webkit-text-size-adjust : none !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\tbody {<br \/>\n\t\t\t\twidth     : 100% !important;<br \/>\n\t\t\t\tmin-width : 100% !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\tbody[yahoo] h2 {<br \/>\n\t\t\t\tline-height : 120% !important;<br \/>\n\t\t\t\tfont-size   : 28px !important;<br \/>\n\t\t\t\tmargin      : 15px 0 10px 0 !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttable.content,<br \/>\n\t\t\ttable.wrapper,<br \/>\n\t\t\ttable.inner-wrapper {<br \/>\n\t\t\t\twidth : 100% !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttable.ticket-content {<br \/>\n\t\t\t\twidth   : 90% !important;<br \/>\n\t\t\t\tpadding : 20px 0 !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttable.ticket-details {<br \/>\n\t\t\t\tposition       : relative;<br \/>\n\t\t\t\tadding-bottom : 100px !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttable.ticket-break {<br \/>\n\t\t\t\twidth : 100% !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.wrapper {<br \/>\n\t\t\t\twidth : 100% !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-content {<br \/>\n\t\t\t\twidth : 100% !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-image img {<br \/>\n\t\t\t\tmax-width : 100% !important;<br \/>\n\t\t\t\twidth     : 100% !important;<br \/>\n\t\t\t\theight    : auto !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-details {<br \/>\n\t\t\t\twidth         : 33% !important;<br \/>\n\t\t\t\tpadding-right : 10px !important;<br \/>\n\t\t\t\tborder-top    : 1px solid #ddd !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-details h6 {<br \/>\n\t\t\t\tmargin-top : 20px !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-details.new-row {<br \/>\n\t\t\t\twidth      : 50% !important;<br \/>\n\t\t\t\theight     : 80px !important;<br \/>\n\t\t\t\tborder-top : 0 !important;<br \/>\n\t\t\t\tposition   : absolute !important;<br \/>\n\t\t\t\tbottom     : 0 !important;<br \/>\n\t\t\t\tdisplay    : block !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-details.new-left-row {<br \/>\n\t\t\t\tleft : 0 !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-details.new-right-row {<br \/>\n\t\t\t\tright : 0 !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttable.ticket-venue {<br \/>\n\t\t\t\tposition       : relative !important;<br \/>\n\t\t\t\twidth          : 100% !important;<br \/>\n\t\t\t\tadding-bottom : 150px !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-venue,<br \/>\n\t\t\ttd.ticket-organizer,<br \/>\n\t\t\ttd.ticket-qr {<br \/>\n\t\t\t\twidth      : 100% !important;<br \/>\n\t\t\t\tborder-top : 1px solid #ddd !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-venue h6,<br \/>\n\t\t\ttd.ticket-organizer h6 {<br \/>\n\t\t\t\tmargin-top : 20px !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-qr {<br \/>\n\t\t\t\ttext-align : left !important<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-qr img {<br \/>\n\t\t\t\tfloat      : none !important;<br \/>\n\t\t\t\tmargin-top : 20px !important<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-organizer,<br \/>\n\t\t\ttd.ticket-qr {<br \/>\n\t\t\t\tposition : absolute;<br \/>\n\t\t\t\tdisplay  : block;<br \/>\n\t\t\t\tleft     : 0;<br \/>\n\t\t\t\tbottom   : 0;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-organizer {<br \/>\n\t\t\t\tbottom : 0px;<br \/>\n\t\t\t\theight : 100px !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttd.ticket-venue-child {<br \/>\n\t\t\t\twidth : 50% !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ttable.venue-details {<br \/>\n\t\t\t\tposition : relative !important;<br \/>\n\t\t\t\twidth    : 100% !important;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\ta[href^=&#8221;tel&#8221;], a[href^=&#8221;sms&#8221;] {<br \/>\n\t\t\t\ttext-decoration : none;<br \/>\n\t\t\t\tcolor           : black;<br \/>\n\t\t\t\tpointer-events  : none;<br \/>\n\t\t\t\tcursor          : default;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\t.mobile_link a[href^=&#8221;tel&#8221;], .mobile_link a[href^=&#8221;sms&#8221;] {<br \/>\n\t\t\t\ttext-decoration : default;<br \/>\n\t\t\t\tcolor           : #006caa !important;<br \/>\n\t\t\t\tpointer-events  : auto;<br \/>\n\t\t\t\tcursor          : default;<br \/>\n\t\t\t}<br \/>\n\t\t}<\/p>\n<p>\t\t@media only screen and (max-width: 320px) {<br \/>\n\t\t\ttd.ticket-venue h6,<br \/>\n\t\t\ttd.ticket-organizer h6,<br \/>\n\t\t\ttd.ticket-details h6 {<br \/>\n\t\t\t\tfont-size : 12px !important;<br \/>\n\t\t\t}<br \/>\n\t\t}<\/p>\n<p>\t\t@media print {<br \/>\n\t\t\t.ticket-break {<br \/>\n\t\t\t\tpage-break-before : always !important;<br \/>\n\t\t\t}<br \/>\n\t\t}<\/p>\n<p>\t\t&lt;?php do_action( &#8216;tribe_tickets_ticket_email_styles&#8217; );?&gt;<\/p>\n<p>\t&lt;\/style&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body yahoo=&#8221;fix&#8221; alink=&#8221;#006caa&#8221; link=&#8221;#006caa&#8221; text=&#8221;#000000&#8243; bgcolor=&#8221;#ffffff&#8221; style=&#8221;width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0 auto; padding:20px 0 0 0; background:#ffffff; &#8220;&gt;<br \/>\n\t&lt;div style=&#8221;margin:0; padding:0; width:100% !important; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:14px; line-height:145%; text-align:left;&#8221;&gt;<br \/>\n\t\t&lt;center&gt;<br \/>\n\t\t\t&lt;?php<br \/>\n\t\t\tdo_action( &#8216;tribe_tickets_ticket_email_top&#8217; );<\/p>\n<p>\t\t\t$count = 0;<br \/>\n\t\t\t$break = &#8221;;<br \/>\n\t\t\tforeach ( $tickets as $ticket ) {<br \/>\n\t\t\t\t$count ++;<\/p>\n<p>\t\t\t\tif ( $count == 2 ) {<br \/>\n\t\t\t\t\t$break = &#8216;page-break-before: always !important;&#8217;;<br \/>\n\t\t\t\t}<\/p>\n<p>\t\t\t\t$event      = get_post( $ticket[&#8216;event_id&#8217;] );<br \/>\n\t\t\t\t$header_id  = Tribe__Tickets__Tickets_Handler::instance()-&gt;get_header_image_id( $ticket[&#8216;event_id&#8217;] );<br \/>\n\t\t\t\t$header_img = false;<br \/>\n\t\t\t\tif ( ! empty( $header_id ) ) {<br \/>\n\t\t\t\t\t$header_img = wp_get_attachment_image_src( $header_id, &#8216;full&#8217; );<br \/>\n\t\t\t\t}<\/p>\n<p>\t\t\t\t$venue_label = &#8221;;<br \/>\n\t\t\t\t$venue_name = null;<\/p>\n<p>\t\t\t\tif ( function_exists( &#8216;tribe_get_venue_id&#8217; ) ) {<br \/>\n\t\t\t\t\t$venue_id = tribe_get_venue_id( $event-&gt;ID );<br \/>\n\t\t\t\t\tif ( ! empty( $venue_id ) ) {<br \/>\n\t\t\t\t\t\t$venue = get_post( $venue_id );<br \/>\n\t\t\t\t\t}<\/p>\n<p>\t\t\t\t\t$venue_label = tribe_get_venue_label_singular();<\/p>\n<p>\t\t\t\t\t$venue_name = $venue_phone = $venue_address = $venue_city = $venue_web = &#8221;;<br \/>\n\t\t\t\t\tif ( ! empty( $venue ) ) {<br \/>\n\t\t\t\t\t\t$venue_name    = $venue-&gt;post_title;<br \/>\n\t\t\t\t\t\t$venue_phone   = get_post_meta( $venue_id, &#8216;_VenuePhone&#8217;, true );<br \/>\n\t\t\t\t\t\t$venue_address = get_post_meta( $venue_id, &#8216;_VenueAddress&#8217;, true );<br \/>\n\t\t\t\t\t\t$venue_city    = get_post_meta( $venue_id, &#8216;_VenueCity&#8217;, true );<br \/>\n\t\t\t\t\t\t$venue_web     = get_post_meta( $venue_id, &#8216;_VenueURL&#8217;, true );<br \/>\n\t\t\t\t\t}<br \/>\n\t\t\t\t}<\/p>\n<p>\t\t\t\t$start_date = null;<\/p>\n<p>\t\t\t\t\/**<br \/>\n\t\t\t\t * Filters whether or not the event start date should be included in the ticket email<br \/>\n\t\t\t\t *<br \/>\n\t\t\t\t * @var boolean Include start date? Defaults to false<br \/>\n\t\t\t\t * @var int Event ID<br \/>\n\t\t\t\t *\/<br \/>\n\t\t\t\t$include_start_date = apply_filters( &#8216;event_tickets_email_include_start_date&#8217;, false, $event-&gt;ID );<\/p>\n<p>\t\t\t\tif ( $include_start_date &amp;&amp; function_exists( &#8216;tribe_get_start_date&#8217; ) ) {<br \/>\n\t\t\t\t\t$start_date = tribe_get_start_date( $event, true );<br \/>\n\t\t\t\t}<\/p>\n<p>\t\t\t\tif ( function_exists( &#8216;tribe_get_organizer_ids&#8217; ) ) {<br \/>\n\t\t\t\t\t$organizers = tribe_get_organizer_ids( $event-&gt;ID );<br \/>\n\t\t\t\t}<\/p>\n<p>\t\t\t\t?&gt;<br \/>\n\t\t\t\t&lt;table class=&#8221;content&#8221; align=&#8221;center&#8221; width=&#8221;620&#8243; cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243; border=&#8221;0&#8243; bgcolor=&#8221;#ffffff&#8221; style=&#8221;margin:0 auto; padding:0;&lt;?php echo $break; ?&gt;&#8221;&gt;<br \/>\n\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t&lt;td align=&#8221;center&#8221; valign=&#8221;top&#8221; class=&#8221;wrapper&#8221; width=&#8221;620&#8243;&gt;<br \/>\n\t\t\t\t\t\t\t&lt;table class=&#8221;inner-wrapper&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;620&#8243; bgcolor=&#8221;#f7f7f7&#8243; style=&#8221;margin:0 auto !important; width:620px; padding:0;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t&lt;td valign=&#8221;top&#8221; class=&#8221;ticket-content&#8221; align=&#8221;left&#8221; width=&#8221;580&#8243; border=&#8221;0&#8243; cellpadding=&#8221;20&#8243; cellspacing=&#8221;0&#8243; style=&#8221;padding:20px; background:#f7f7f7;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;?php<br \/>\n\t\t\t\t\t\t\t\t\t\tif ( ! empty( $header_img ) ) {<br \/>\n\t\t\t\t\t\t\t\t\t\t\t$header_width = esc_attr( $header_img[1] );<br \/>\n\t\t\t\t\t\t\t\t\t\t\tif ( $header_width &gt; 580 ) {<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t$header_width = 580;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t}<br \/>\n\t\t\t\t\t\t\t\t\t\t\t?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;table border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-image&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;100%&#8221; style=&#8221;padding-bottom:15px !important;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img \/>&#8221; width=&#8221;&lt;?php echo esc_attr( $header_width ); ?&gt;&#8221; alt=&#8221;&lt;?php echo esc_attr( $event-&gt;post_title ); ?&gt;&#8221; style=&#8221;border:0; outline:none; height:auto; max-width:100%; display:block;&#8221; \/&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;?php<br \/>\n\t\t\t\t\t\t\t\t\t\t}<br \/>\n\t\t\t\t\t\t\t\t\t\t?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;table border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221; align=&#8221;center&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;td valign=&#8221;top&#8221; align=&#8221;center&#8221; width=&#8221;100%&#8221; style=&#8221;padding: 0 !important; margin:0 !important;&#8221;&gt;<\/p>\n<h2>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&#8221;color:#0a0a0e !important&#8221;&gt;&lt;?php echo $event-&gt;post_title; ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/h2>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php if ( ! empty( $start_date ) ): ?&gt;<\/p>\n<h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&#8221;color:#0a0a0e !important&#8221;&gt;&lt;?php echo $start_date; ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/h4>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php endif; ?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;table class=&#8221;whiteSpace&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;td valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;100%&#8221; height=&#8221;30&#8243; style=&#8221;height:30px; background:#f7f7f7; padding: 0 !important; margin:0 !important;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;div style=&#8221;margin:0; height:30px;&#8221;&gt;&lt;\/div&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;table class=&#8221;ticket-details&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221; align=&#8221;center&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-details&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;100&#8243; style=&#8221;padding: 0; width:100px; margin:0 !important;&#8221;&gt;<\/p>\n<h6>&lt;?php esc_html_e( &#8216;Ticket #&#8217;, &#8216;event-tickets&#8217; ); ?&gt;<\/h6>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&#8221;color:#0a0a0e !important; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:15px;&#8221;&gt;&lt;?php echo $ticket[&#8216;ticket_id&#8217;]; ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-details&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;120&#8243; style=&#8221;padding: 0; width:120px; margin:0 !important;&#8221;&gt;<\/p>\n<h6>&lt;?php esc_html_e( &#8216;Ticket Type&#8217;, &#8216;event-tickets&#8217; ); ?&gt;<\/h6>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&#8221;color:#0a0a0e !important; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:15px;&#8221;&gt;&lt;?php echo $ticket[&#8216;ticket_name&#8217;]; ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-details&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;120&#8243; style=&#8221;padding: 0 !important; width:120px; margin:0 !important;&#8221;&gt;<\/p>\n<h6>&lt;?php esc_html_e( &#8216;Purchaser&#8217;, &#8216;event-tickets&#8217; ); ?&gt;<\/h6>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&#8221;color:#0a0a0e !important; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:15px;&#8221;&gt;&lt;?php echo $ticket[&#8216;holder_name&#8217;]; ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-details new-row new-left-row&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;120&#8243; style=&#8221;padding: 0; width:120px; margin:0 !important;&#8221;&gt;<\/p>\n<h6>&lt;?php esc_html_e( &#8216;Security Code&#8217;, &#8216;event-tickets&#8217; ); ?&gt;<\/h6>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&#8221;color:#0a0a0e !important; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:15px;&#8221;&gt;&lt;?php echo $ticket[&#8216;security_code&#8217;]; ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;table class=&#8221;whiteSpace&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;td valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;100%&#8221; height=&#8221;30&#8243; style=&#8221;height:30px; background:#f7f7f7; padding: 0 !important; margin:0 !important;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;div style=&#8221;margin:0; height:30px;&#8221;&gt;&lt;\/div&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;?php<br \/>\n\t\t\t\t\t\t\t\t\t\tif ( $venue_name || ! empty( $organizers ) ) {<br \/>\n\t\t\t\t\t\t\t\t\t\t\t?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;table class=&#8221;ticket-venue&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221; align=&#8221;center&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ( $venue_name ) {<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-venue&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;300&#8243; style=&#8221;padding: 0 !important; width:300px; margin:0 !important;&#8221;&gt;<\/p>\n<h6>&lt;?php esc_html_e( $venue_label, &#8216;event-tickets&#8217; ); ?&gt;<\/h6>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;table class=&#8221;venue-details&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221; align=&#8221;center&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-venue-child&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;130&#8243; style=&#8221;padding: 0 10px 0 0 !important; width:130px; margin:0 !important;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&#8221;color:#0a0a0e !important; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:13px; display:block; margin-bottom:5px;&#8221;&gt;&lt;?php echo $venue_name; ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a><br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php echo $venue_address; ?&gt;&lt;br \/&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php echo $venue_city; ?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/a><br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-venue-child&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;100&#8243; style=&#8221;padding: 0 !important; width:140px; margin:0 !important;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&#8221;color:#0a0a0e !important; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:13px; display:block; margin-bottom:5px;&#8221;&gt;&lt;?php echo $venue_phone; ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php if ( ! empty( $venue_web ) ): ?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a>&#8221; style=&#8221;color:#006caa !important; display:block; margin:0; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:13px; text-decoration:underline;&#8221;&gt;&lt;?php echo $venue_web; ?&gt;<\/a><br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php endif ?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\/\/end if<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\tif ( ! empty( $organizers ) ) {<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-organizer&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;140&#8243; style=&#8221;padding: 0 !important; width:140px; margin:0 !important;&#8221;&gt;<\/p>\n<h6>&lt;?php echo tribe_get_organizer_label( count( $organizers ) &lt; 2 ); ?&gt;<\/h6>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php foreach ( $organizers as $organizer_id ) { ?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle=&#8221;color:#0a0a0e !important; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:15px; display:block; padding-bottom:5px;&#8221;&gt;&lt;?php echo tribe_get_organizer( $organizer_id ); ?&gt;&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php } ?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;?php<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\/\/end if<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;?php<br \/>\n\t\t\t\t\t\t\t\t\t\t}\/\/end if<br \/>\n\t\t\t\t\t\t\t\t\t\t?&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;table border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221; align=&#8221;center&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;td class=&#8221;ticket-footer&#8221; valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;100%&#8221; style=&#8221;padding: 0 !important; width:100%; margin:0 !important;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a>&#8221; style=&#8221;color:#006caa !important; display:block; margin-top:20px; font-family: &#8216;Helvetica Neue&#8217;, Helvetica, sans-serif; font-size:13px; text-decoration:underline;&#8221;&gt;&lt;?php echo home_url(); ?&gt;<\/a><br \/>\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t\t&lt;?php do_action( &#8216;tribe_tickets_ticket_email_ticket_bottom&#8217;, $ticket ); ?&gt;<br \/>\n\t\t\t\t\t\t\t&lt;table class=&#8221;whiteSpace&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; width=&#8221;100%&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;tr&gt;<br \/>\n\t\t\t\t\t\t\t\t\t&lt;td valign=&#8221;top&#8221; align=&#8221;left&#8221; width=&#8221;100%&#8221; height=&#8221;100&#8243; style=&#8221;height:100px; background:#ffffff; padding: 0 !important; margin:0 !important;&#8221;&gt;<br \/>\n\t\t\t\t\t\t\t\t\t\t&lt;div style=&#8221;margin:0; height:100px;&#8221;&gt;&lt;\/div&gt;<br \/>\n\t\t\t\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t\t\t&lt;\/td&gt;<br \/>\n\t\t\t\t\t&lt;\/tr&gt;<br \/>\n\t\t\t\t&lt;\/table&gt;<br \/>\n\t\t\t\t&lt;?php<br \/>\n\t\t\t}\/\/end foreach<\/p>\n<p>\t\t\tdo_action( &#8216;tribe_tickets_ticket_email_bottom&#8217; );<br \/>\n\t\t\t?&gt;<br \/>\n\t\t&lt;\/center&gt;<br \/>\n\t&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n","protected":false},"template":"","class_list":["post-1101590","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ticket email.php -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ticket email.php -\" \/>\n<meta property=\"og:description\" content=\"for some reason the email is coming thru with large amounts of white space between each section. This is straight from your installation file: &lt;?php \/** * Tickets Email Template * The template for the email with the purchased tickets when using ticketing plugins (Like WooTickets) * * Override this template in your own theme [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-27T16:35:06+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/\",\"name\":\"ticket email.php -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-04-12T21:43:15+00:00\",\"dateModified\":\"2016-04-27T16:35:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"ticket email.php\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ticket email.php -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/","og_locale":"en_US","og_type":"article","og_title":"ticket email.php -","og_description":"for some reason the email is coming thru with large amounts of white space between each section. This is straight from your installation file: &lt;?php \/** * Tickets Email Template * The template for the email with the purchased tickets when using ticketing plugins (Like WooTickets) * * Override this template in your own theme [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/","article_modified_time":"2016-04-27T16:35:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/","name":"ticket email.php -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-04-12T21:43:15+00:00","dateModified":"2016-04-27T16:35:06+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"ticket email.php"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1101590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1101590\/revisions"}],"predecessor-version":[{"id":1101772,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1101590\/revisions\/1101772"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1101590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}