Salve ragazzi,
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:
Io vorrei poter s
mail('[email protected]', 'Modifica Ticket', '$variabile');
Ma cosa prendo? Come imposto il tutto??? Mi aiutate a capire...Grazie Mille!!
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:
PHP:
function quality_comment( $comment, $args, $depth )
{
$GLOBALS[ 'comment' ] = $comment;
$updates = get_comment_meta( get_comment_ID(), 'ticket_updates', true );
$i = 0;
?>
<li <?php comment_class( 'ticket' . ( $i % 2 ? '' : ' alt' ) ); ?> id="comment-<?php comment_ID(); ?>">
<div class="ticket-gravatar">
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo get_avatar( $comment, 29 ); ?></a>
</div>
<div class="ticket-info">
<p class="ticket-author">
<strong><?php comment_author_link(); ?></strong><br />
<small><?php printf( __( 'about <em title="%s">%s</em> ago', 'quality' ), esc_attr( get_the_date() . __( ' at ', 'quality' ) . get_the_time() ), esc_attr( human_time_diff( get_comment_time( 'U' ), current_time( 'timestamp' ) ) ) ); ?></small>
</p>
<div class="reply">
<?php if( get_comment_text() != ' ' ) : comment_text(); endif; ?>
<?php if( $updates ) : ?>
<ol class="update-list<?php if( get_comment_text() == ' ' ) :?> single<?php endif; ?>">
<li><strong class="title"><?php _e( 'Updates Made:', 'quality' ); ?></strong>
<ul>
<?php foreach( $updates as $update ) : ?>
<li><?php echo $update; ?></li>
<?php endforeach; ?>
</ul>
</li>
</ol>
<?php endif; ?>
</div>
</div>
<?php
$i++;
}
Io vorrei poter s
mail('[email protected]', 'Modifica Ticket', '$variabile');
Ma cosa prendo? Come imposto il tutto??? Mi aiutate a capire...Grazie Mille!!