Migrer WordPress vers un autre domaine

UPDATE wp_options SET option_value = replace(option_value, 'http://www.anciendomaine.tld', 'http://www.nouveaudomaine.tld') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://www.anciendomaine.tld', 'http://www.nouveaudomaine.tld'); UPDATE wp_posts SET post_content = replace(post_content, 'http://www.anciendomaine.tld', 'http://www.nouveaudomaine.tld'); UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://www.anciendomaine.tld','http://www.nouveaudomaine.tld');

Plus

Fonction php mail()

<?php $subject = "Sujet Mail"; $mailheaders = "MIME-Version: 1.0 \n"; $mailheaders .= "Content-type: text/html; charset=utf-8 \n"; $mailheaders .= "From: adresse_exp@domaine.tld\n"; $mailheaders .="Content-Transfer-Encoding: 8bit \n"; mail("destinataire@mail.com", $subject, $msg, $mailheaders); ?>

Plus