You don't really need Perl for that, either. And you should make sure there is an empty line between the headers and the body.
You should properly have Mime-Version and Content-Transfer-Encoding headers as well as Content-Type. The issue of correct MIME transfer encoding is one of the many possible complexities which is simply ignored here (and one of the reasons simple shell scripts don't work well in the general case).
If your cat can combine standard input with a regular file, more power to you.
Hi,
How can I write a HTML file in Unix.
Once I do that, I want to send this file as a body of a mail, along with writing a subject for the mail I am sending through unix.
How can that be done? (0 Replies)
Hi,
I'm working on Solaris 9 (SPARC) and I like to send an html body message to our users when something happen.
The problem is that I can't find how to give mime type information with mailx.
To be recognized as html I need to put in email header this information:
Mime-Version: 1.0... (2 Replies)
Hi folks,
I have a perl script which sends out email after successful completion of job as inline html, I want to send it out as two parts now as html inline and html attachment. see the attached script.
Thanks in advance (1 Reply)
Dear all-
I have a requirement to send an email via email with body content which looks something below-
Email body contents
--------------------
RequestType: Update
DateAcctOpened: 1/5/2010
Note that header information and data content should be normal text..
Please advice on... (5 Replies)
Hi,
i want to disply the o/p in HTML format from unix environment.
Let me explain my requirement.
First an automated email should be sent in HTML format. The report contains number of error on a daily basis for this week.
email looks like below,
01-04-2010 1000
02-04-2010 ... (3 Replies)
Hi there..
I need a proper "mutt" command to send a mail with html body and html attachment at a time.
Also if possible let me know the other commands to do this task.
Please help me.. (2 Replies)
Hi,
I want to display both html and plain in email in my script.
i tried the below code
code:
export MAILTO="ssi@a.com"
export CONTENT1="$htmlfile"
export CONTENT2="$plainfile"
export SUBJECT="INFO "
export MAILFROM="si@a.com"
(
echo "Subject: $SUBJECT"
echo "MIME-Version:... (4 Replies)
Hi all:
Been racking my brain on this for the last couple of days and what has been most frustrating is that this is the last piece I need to complete a project.
There are numerous posts discussing mutt in this forum and others but I have been unable to find similar issues.
Running with... (1 Reply)
Hi All,
I need a syntax for mailing in unix by using html code file output as body and along with attachment (without using mutt command)
HTML code file : html1.txt
Attachment : attach1.txt
I was using the below codes but they are not working.
( cat html1.txt ; uuencode attach1.txt... (4 Replies)
Discussion started by: Rokkesh
4 Replies
LEARN ABOUT PHP
imap_fetchmime
IMAP_FETCHMIME(3) 1 IMAP_FETCHMIME(3)imap_fetchmime - Fetch MIME headers for a particular section of the messageSYNOPSIS
string imap_fetchmime (resource $imap_stream, int $msg_number, string $section, [int $options])
DESCRIPTION
Fetch the MIME headers of a particular section of the body of the specified messages.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $msg_number
- The message number
o $section
- The part number. It is a string of integers delimited by period which index into a body part list as per the IMAP4 specification
o $options
- A bitmask with one or more of the following:
o FT_UID - The $msg_number is a UID
o FT_PEEK - Do not set the Seen flag if not already set
o FT_INTERNAL - The return string is in internal format, will not canonicalize to CRLF.
RETURN VALUES
Returns the MIME headers of a particular section of the body of the specified messages as a text string.
SEE ALSO imap_fetchbody(3), imap_fetchstructure(3), imap_fetchheader(3).
PHP Documentation Group IMAP_FETCHMIME(3)