Re: email text



my $BODY = <<"END_TXT";
This is the message that will be passed and you
can even put $variables into it and they will
be interpolated.
END_TXT

Then you just pass $BODY to however you constructed your MIME::Lite call.

HTH,

Robert

Mathew wrote:
I'll have to look at the HEREDOC option. I'm not familiar with that.
As for HTML, people here get quite frisky when they don't get plain text
emails.

Mathew

Robert Hicks wrote:
I typically use a HEREDOC to format my email messages. You can do all
sort of things by sending the email as HTML of you want as well.

Robert

Mathew wrote:
I'm using MIME::Lite to create the email. It is being generated as I'm
able to send out all the emails necessary.

The way I'm doing it now is to use a variable which holds a small
message to be inserted into the email. However, I don't know how to
dynamically format that variable with the data I'm sending.

The data looks like this:

Ticket ID hh:mm
---------------------
000000 00:00
111111 11:11
222222 22:22

And so on. That is what gets placed in the file but I'd prefer it be
placed inside the email.

Mathew
.



Relevant Pages

  • Re: 10.4.10
    ... I can't be bothered having haircuts, is the main reason my hair is long. ... HTML and all that. ... generate labels on an option from the source - why not have it generate ... that's the sort of job TeX is a bit better at. ...
    (uk.comp.sys.mac)
  • Re: Sorting imported text
    ... Sometimes, when you copy|paste from a web site, you'll get some HTML stuff in ... the cell--Non-breaking spaces in HTML often cause the problem you're seeing. ... I tried to sort the data on ... > column C in descending order, ...
    (microsoft.public.excel)
  • Re: Exporting records from related fields
    ... I need to export member records from a database to an HTML ... So you would have multiple rows per ... Certainly you could sort them by Family before you ...
    (comp.databases.filemaker)
  • Re: compress data for dynamic tables
    ... I realize I could get the data from the html ... The article seems to assume that if you want to sort tables, ... I didn't see anywhere that Goodman shows the array syntax, ... I was wondering if there's any way to compress the data as it's sent to ...
    (comp.lang.javascript)
  • Question
    ... you still need to sort. ... Output an html table displaying data based on criteria. ...
    (alt.php)