Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] sending html emails (?)



******    message to minivend-users from Murray Gibbins <murray@scotweb.ltd.uk>     ******

rammjet@mac.com wrote:
> 
> ******    message to minivend-users from rammjet@mac.com     ******
> 
> I don't have the answer for you, but if you go to the Perl resources at www.cgi-resources.com, there is a routine for doing this.  Maybe you can study the source and get some ideas or at the worst case, embed the Perl routine...


#!/usr/bin/perl -w

open (MAIL, "|/usr/lib/sendmail -t");

print MAIL "To: Murray\@scotweb.ltd.uk\n";
print MAIL "From: Murray\@scotweb.ltd.uk\n";
print MAIL "Subject: wibble\n";
print MAIL <<END;
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<font color="#FF6666">ssssss</font>
wibble
</HTML>
END

close MAIL;
exit;

and hay presto html emails :-), MIME is lots of fun.

-- 
  ____
  \__/    Murray Gibbins             murray@scotweb.ltd.uk
  /  \    Programmer
_ \__/ _  ================================================
\\ || //  Scotweb Limited,             info@scotweb.ltd.uk
 \\||//   13a Albert Terrace,    http://www.scotweb.ltd.uk
  \||/    Edinburgh EH10 5EA   Tel: +44 (0)  131 270 82 33
   ||     Scotland. Europe.    Fax: +44 (0) 7020  93 49 04
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: