<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Spedire via Mail il risultato di una Function]]></title><description><![CDATA[<p dir="auto">Spedire via Mail il risultato di una Function</p>
<p dir="auto">Salve ragazzi,</p>
<p dir="auto">ho un grosso problema vorrei notificare via mail tramite il risultato di una function...il problema è che non riesco a capire quale sono le variabili e come prendere.....la function è questa:</p>
<pre><code class="language-php">function quality_comment( $comment, $args, $depth ) 
{	
	$GLOBALS[ 'comment' ] = $comment;
	$updates = get_comment_meta( get_comment_ID(), 'ticket_updates', true );
	$i = 0;
	
?&gt;
	&lt;li &lt;?php comment_class( 'ticket' . ( $i % 2 ? '' : ' alt' ) ); ?&gt; id="comment-&lt;?php comment_ID(); ?&gt;"&gt; 
		
		&lt;div class="ticket-gravatar"&gt; 
			&lt;a href="&lt;?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?&gt;"&gt;&lt;?php echo get_avatar( $comment, 29 ); ?&gt;&lt;/a&gt; 
		&lt;/div&gt; 
		
		&lt;div class="ticket-info"&gt; 
		
			&lt;p class="ticket-author"&gt;
				&lt;strong&gt;&lt;?php comment_author_link(); ?&gt;&lt;/strong&gt;&lt;br /&gt;
				&lt;small&gt;&lt;?php printf( __( 'about &lt;em title="%s"&gt;%s&lt;/em&gt; ago', 'quality' ), esc_attr( get_the_date() . __( ' at ', 'quality' ) . get_the_time() ), esc_attr( human_time_diff( get_comment_time( 'U' ), current_time( 'timestamp' ) ) ) ); ?&gt;&lt;/small&gt;
			&lt;/p&gt;
			
			
			&lt;div class="reply"&gt;
			
				&lt;?php if( get_comment_text() != '&amp;nbsp;' ) : comment_text(); endif; ?&gt;
				
				&lt;?php if( $updates ) : ?&gt;
					
					&lt;ol class="update-list&lt;?php if( get_comment_text() == '&amp;nbsp;' ) :?&gt; single&lt;?php endif; ?&gt;"&gt;
						&lt;li&gt;&lt;strong class="title"&gt;&lt;?php _e( 'Updates Made:', 'quality' ); ?&gt;&lt;/strong&gt;
							&lt;ul&gt;
								&lt;?php foreach( $updates as $update ) : ?&gt;
									&lt;li&gt;&lt;?php echo $update; ?&gt;&lt;/li&gt;
								&lt;?php endforeach; ?&gt;
							&lt;/ul&gt;
						&lt;/li&gt;
					&lt;/ol&gt;
					
				&lt;?php endif; ?&gt;
				
			&lt;/div&gt;
			
		&lt;/div&gt;
&lt;?php
	$i++;
}
</code></pre>
<p dir="auto">Io vorrei poter spedire cosi:</p>
<p dir="auto">mail('miamail@gmail.com', 'Modifica Ticket', '$variabile');</p>
<p dir="auto">Ma cosa prendo? Come imposto il tutto??? Mi aiutate a capire...Grazie Mille!!</p>
]]></description><link>https://dev.connect.gt/topic/139800/spedire-via-mail-il-risultato-di-una-function</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 03:32:35 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/139800.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Nov 2010 19:32:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Spedire via Mail il risultato di una Function on Tue, 23 Nov 2010 20:02:51 GMT]]></title><description><![CDATA[<p dir="auto">Vorresti cioè mandare via mail parte di testo compreso gli li div e altro html?</p>
]]></description><link>https://dev.connect.gt/post/951884</link><guid isPermaLink="true">https://dev.connect.gt/post/951884</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Tue, 23 Nov 2010 20:02:51 GMT</pubDate></item></channel></rss>