Q: php - how replace cid to link for php email? how can replace the cid image for each image name from the email
this my code 
$input  = $obj->getBody($from);
$output2 = preg_replace("/cid:(.*?)@[\w.]*/","http://".$_SERVER["HTTP_HOST"]."/cchelp/attach/".$value."", $input);
echo $output2;

thank you for your help

A: Everything seems ok with your code, just check if the cid argument has "@" because sometimes it doesn't (like cid:useratexample.com) and your regex needs this to work properly
