Joomla.it Forum

Non solo Joomla... => Sviluppo => : Flaterik 25 Feb 2010, 17:02:07

: [Risolto] Adsmanager email di notifica
: Flaterik 25 Feb 2010, 17:02:07
Salve a tutti sto modificando la mail di notifica di Adsmanager. Ad oggi arriva solo il testo dell'annuncio.

la struttura è questa:

   {
      $title = mosGetParam( $_POST, "ad_headline", "" );
       $body = mosGetParam( $_POST ,"ad_text", "" );
   $body = str_replace(array("\r\n", "\n", "\r"), "
", $body);
      if (get_magic_quotes_gpc() == true)
      {
         $body = stripslashes( $body );
         $title = stripslashes( $title );
      }
      sendAdEmail($isUpdateMode,$title,$body,$mosConfig_mailfrom);
   }

Io vorrei aggiungere dei campi.
Per metterli tutti insieme nella variabile body come posso fare?
Posso estrarli cosi':

 $ragionesociale = mosGetParam( $_POST ,"ad_ragionesociale", "" );

ecc ecc ecc. Una volta ottenute queste variabili, come le metto nel corpo della mail?

Vorrei la mia mail sia cosi':

Ragione sociale= "ad_ragionesociale"
Nome = "ad_nome"

Testo = $body (cioe' quello che sta in body).

Qualcuno sa darmi qualche dritta?
Grazie


: Re:Adsmanager email di notifica
: Flaterik 25 Feb 2010, 17:50:20
Risolto.

Vi posto la soluzione , se serve a qualcuno:

$ragionesociale = mosGetParam( $_POST, "ad_ragionesociale", "" );
   $name = mosGetParam( $_POST, "name", "" );
   $email = mosGetParam( $_POST, "email", "" );
   $body = "\n\rRagione Sociale: " .$ragionesociale ."<br \>Nome: " .$name . "<br \>E-mail: " .$email . "<br \><br \>" .$body;
: Re:[Risolto] Adsmanager email di notifica
: royworks 24 Oct 2011, 11:42:32
scusa ,
ma dove va inserita questa stringa di codice??
mi interesserebbe anche a me...
ciao e grazie
: Re:[Risolto] Adsmanager email di notifica
: marpal87 09 May 2013, 16:50:43
Anche a me interessa, in quale parte devo agire?