Tengo este codigo en php me envia correos al outlook y ya me crea la cita en ics pero tengo un problema bastante tonto , no me salen las etiquetas LOGRE SOLUCIONAR!! EL SALTO DE LINEA ASI:
Código HTML:
\\n
Código HTML:
pero la negrita no.. :/<b></b>
Código PHP:
$headers .= "Content-Type: text/html; charset='UTF-8;\n";
aca el codigo:
Código PHP:
$message="BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTEND;TZID='SA Pacific Standard Time':{$tercervariable}
DTSTART;TZID='SA Pacific Standard Time':{$tercervariable1}
DTSTAMP:20110525T075116Z
ORGANIZER;[email protected]
UID:12345678
ATTENDEE;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Sample:mailto:[email protected]
DESCRIPTION:TEMA:{$title}{$b} TEMA:{$title}
FECHA QUE INICIA{$fecha1}
LOCATION: {$direccion}
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:{$title}
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR";
$title=utf8_decode($title);
/*Setting the header part, this is important */
$headers = "From: [email protected]\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/calendar; method=REQUEST;\n";
$headers .= "charset='UTF-8'";
$headers .= "\n";
$headers .= "Content-Transfer-Encoding: 7bit";
/*mail content , attaching the ics detail in the mail as content*/
$subject = "Nuevo correo";
$subject = html_entity_decode($subject, ENT_QUOTES, 'UTF-8');
/*mail send*/
if(mail("[email protected]", $subject, $message, $headers)) {
echo "sent";
}else {
echo "error";
}
?>