kalvn's links
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
page 2 / 2
24 results tagged texte  ✕
Sending a multi-part email with html and plain text http://kevinjmcmahon.net/articles/22/html-and-plain-text-multipart-email-/
25/02/2016 10:12:29

Un moyen simple d'envoyer 2 emails en 1 en PHP, grâce au Content Type multipart/alternative. Si le client mail du destinataire gère le HTML, c'est cette version qui sera affichée, sinon ce sera la version texte.
Vous me direz qu'aujourd'hui, tous les clients mails gèrent le HTML. C'est vrai mais certains utilisateurs le désactivent volontairement.

Je me fait une copie du code donné en exemple dans l'article :

//specify the email address you are sending to, and the email subject
$email = 'email@example.com';
$subject = 'Email Subject';

//create a boundary for the email. This 
$boundary = uniqid('np');

//headers - specify your from email address and name here
//and specify the boundary for the email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "From: Your Name \r\n";
$headers .= "To: ".$email."\r\n";
$headers .= "Content-Type: multipart/alternative;boundary=" . $boundary . "\r\n";

//here is the content body
$message = "This is a MIME encoded message.";
$message .= "\r\n\r\n--" . $boundary . "\r\n";
$message .= "Content-type: text/plain;charset=utf-8\r\n\r\n";

//Plain text body
$message .= "Hello,\nThis is a text email, the text/plain version.
\n\nRegards,\nYour Name";
$message .= "\r\n\r\n--" . $boundary . "\r\n";
$message .= "Content-type: text/html;charset=utf-8\r\n\r\n";

//Html body
$message .= "
 Hello,
This is a text email, the html version.

Regards,
Your Name";
$message .= "\r\n\r\n--" . $boundary . "--";

//invoke the PHP mail function
mail('', $subject, $message, $headers);
email multipart php HTML texte
Overriding the Default Text Selection Colour @toddmotto https://toddmotto.com/overriding-the-default-text-selection-colour/
05/01/2016 12:15:04

Changer la couleur de surlignage en CSS.

CSS texte selection
Atom https://atom.io/
29/06/2015 09:46:42

Atom 1.0 est de sortie.
Un concurrent à Sublime Text et Brackets. J'avais essayé à l'époque sans être convaincu mais cette première mouture stable a l'air de conquérir les esprits. Je vais probablement lui laisser une chance :)
Via http://www.alsacreations.com/actu/lire/1680-editeur-atom-1-se-devoile.html

atom sublimetext editeur texte
Free Online OCR - Convert JPEG, PNG, GIF, BMP, TIFF, PDF, DjVu to Text https://www.newocr.com/
28/05/2015 11:05:49

Service en ligne de reconnaissance de texte sur une image.
Via http://sebsauvage.net/links/?svZ9gw

ocr image texte
page 2 / 2
4211 links, including 129 private
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Theme by kalvn