Maybe I am retarded, but I seem to be missing where the images from FCKEditor can be converted into MIME types so that a template for an email with images can be designed and saved through FCKEditor and later retrieved and emailed.
I have thought of 2 ways to do this:
1. Parse the content when mailing, find anything with src="xxxxxxxx" and grab the file name. Then change the src="xxx" to ensure it is using just the filename, no path (so images/pic.jpeg' becomes 'pic.jpeg') and then adding it to the email as an attachment
2. using MIME encoding (still learning).
Can anyone offer direction. Maybe you have found a way or have some insight.
Thank you for the suggestion.. it is a very creative and exciting idea.
I already created the template control.. so in other words, I just took the information page from the admin panel and moded to use as a email_template page. All works well, but I have 1 step left... if you simply send out the template, it will send relative links to images (just like they are on your server) however no images... so the last step is to:
As the template is being saved (after being edited) i need to parse out the image links (bascially just regex or string search for src="xxx"... and use the included mailer class (setAttachment method to add the links to the email). I'm thinking that at the time the tempalte is saved the image links will be parsed out and saved into the email_template table i created and when the emails are being sent out, the class will handle reading those images in and attaching to the email.
Thoughts?
I already created the template control.. so in other words, I just took the information page from the admin panel and moded to use as a email_template page. All works well, but I have 1 step left... if you simply send out the template, it will send relative links to images (just like they are on your server) however no images... so the last step is to:
As the template is being saved (after being edited) i need to parse out the image links (bascially just regex or string search for src="xxx"... and use the included mailer class (setAttachment method to add the links to the email). I'm thinking that at the time the tempalte is saved the image links will be parsed out and saved into the email_template table i created and when the emails are being sent out, the class will handle reading those images in and attaching to the email.
Thoughts?
Who is online
Users browsing this forum: No registered users and 2 guests