Say if I had a string which had this text/html stored in it:
Hello. This is a test article. <img src="http://hellotxt.com/image/jpFd.n.jpg" />
I want the image to be uploaded/saved in a temp folder, then sent as an attachment via email. Then preferably have the temp folder deleted. Would this be possible?
I know how to sent the email with an attachment (the easy part), so that’s no problem. It’s just the uploading of the image into a folder and finding the image in the string.
Ok so this is basically a 2 part question:
I’m not great with regexp so the one I provided might be wrong, but I think it should work.
Hopefully that does the trick, or at least gets you headed in the right direction!