martedì 22 ottobre 2013

Plugin Wordpress: Subscribe 2

1) Per il problema di TITLE sull'oggetto della mail va sostituito su Template TITLE con {TITLE}

2) Per inviare mail HTML o modificare il corpo del messaggio bisogna intervenire su class-s2-core.php

ad esempio nella linea 242

if ( 'html' == $type ) {
$headers = $this->headers('html');
if ( 'yes' == $this->subscribe2_options['stylesheet'] ) {
$mailtext = apply_filters('s2_html_email', "<html><head><title>" . $subject . "</title><link rel=\"stylesheet\" href=\"" . get_stylesheet_uri() . "\" type=\"text/css\" media=\"screen\" /></head><body><table><tr><td><img src='URL IMMAGINE' /></td></tr><tr><td bgolor='#FFFFFF'>" . $message . "</td></tr></table></body></html>", $subject, $message);
} else {
$mailtext = apply_filters('s2_html_email', "<html><head><title>" . $subject . "</title></head><body><table><tr><td><img src='URL IMMAGINE'/></td></tr><tr><td bgolor='#FFFFFF'>" . $message . "</td></tr></table></body></html>", $subject, $message);

}

Nessun commento: