Old sendmail with Perl need to embed attachment -
before says need use mime::lite or pm... job has base set of pms , can't change them... need working within confines of system:
we have been using code send email our clients years:
open mail, "| /usr/lib/sendmail -t"; print mail qq[to: $email from: myfoofoo\@www.foobar.com reply-to: not reply subject: subject hello, body of message thank ]; close mail;
now, asking me embed image in email... have tried use unix sendmail - html embed image not working reference, can't figure out boundary/mime types...
you have build mail mime message multipart/related , feed sendmail. see http://tools.ietf.org/html/rfc2110, contains examples of how such mail looks , how embed images html mail etc. need way base64 encode data, either can use mime::base64 it, external command line tool or program in few lines (see source of mime::base64).
Comments
Post a Comment