OVERVIEW:
My goal is to prepare three categories of e-mail on my PC upload each to a server to send it. The three categories of e-mail are 1) plain text, 2) plain HTML, and 3) HTML w/images. I'm using MIME::Lite to prepare all three categories. So far no problem.
PROBLEMS:
1. What is the best MIME::Lite format to locally save the e-mail in for MIME::Lite on the server to use it?
$str = $msg->as_string; ? or
$str = $msg->body_as_string; ?
other?
2. Once uploaded, how do I use MIME::Lite to re-build the e-mail using the prepared data?
- If I save the whole message, is there a facility to just send it?
- If I save the body only and create a new object, can I leave out the Type and Data and do an attach? What would the necessary contstructs be?
NOTE:
I'm preparing the e-mail locally so all of the images can be process locally and not have to be uploaded.
My goal is to prepare three categories of e-mail on my PC upload each to a server to send it. The three categories of e-mail are 1) plain text, 2) plain HTML, and 3) HTML w/images. I'm using MIME::Lite to prepare all three categories. So far no problem.
PROBLEMS:
1. What is the best MIME::Lite format to locally save the e-mail in for MIME::Lite on the server to use it?
$str = $msg->as_string; ? or
$str = $msg->body_as_string; ?
other?
2. Once uploaded, how do I use MIME::Lite to re-build the e-mail using the prepared data?
- If I save the whole message, is there a facility to just send it?
- If I save the body only and create a new object, can I leave out the Type and Data and do an attach? What would the necessary contstructs be?
NOTE:
I'm preparing the e-mail locally so all of the images can be process locally and not have to be uploaded.