I want to send some newsletter, and I composed an HTML email with an image in the middle. If I use the absolute path to the image, if I replace that image in the server, old emails will get updated as well (as they are a reference to the absolute path). Instead, I would like something like a relative path or somehow embed the image in that part of the email (not as an attachment), so that the email is static and even if I replace that image for next month, it won't affect.
I want to keep the same filename for everymonth so that I can simply replace the image by another with the same name and resend the email with PHPMailer.
Also, if I embed the image instead of adding the full path, it makes it more secure since I don't want anyone to access the image with the link, only if they received the email. If I give them the full path someone could actually distribute the image and they would get free image every month since I Would be updating it in the same URL.
Is there any workaround or solutiong for that?