pout Posted May 3, 2019 Share Posted May 3, 2019 E-Mail-Client doesn't show a linked Image, so I want to try another content type header, but I don't get it overwritten. I tried: $headers = array("Content-Type" => "multipart/related; boundary=\"abcdef\"; type=\"application/xhtml+xml\""); if ($mail->mailHTML($to,$subject, $body, $headers)) { ... } (not sure about the type=\"application/xhtml+xml\" part) , but content type header still is: Content-Type: multipart/alternative; boundary="f73ea6d91e70b02e6c46d1cd4b36a0f1" or any other suggestions why <img src="https://'.$config->httpHost.$img->url.'" height="180" width="180"> in body is not loading image in e-mail client (Thunderbird and also Android K-9 Mail). In Webmail this is working. I do this in an external script for a cronjob. Link to comment Share on other sites More sharing options...
pout Posted May 7, 2019 Author Share Posted May 7, 2019 There is the answer. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now