For example, I insert a picture into the letter text:

<img src="' . $img_name . '" alt="QR Code" /> 

but in the letter comes

 <img alt="QR Code"> 
  • one
    value of the variable $ img_name tried to display somewhere? - HELO WORD
  • Yes. the way is correct. after adding the file path to the beginning of "http: //" but instead of src now _src is now - Jonny Manowar
  • And where do you see the final code of the letter? - Ivan Pshenitsyn

1 answer 1

follow these steps in succession, at a certain stage, I am sure everything will be resolved

1) try to insert text instead of a variable as you did with the alt attribute, the picture or the path to it in the source of the letter should be displayed in any case

2) try to manually define the $ img_name variable before this section of the code, also use var_dump to check its contents, before and after for compliance