Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #9051

Re: Suggestions on formatting an outgoing email message

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Suggestions on formatting an outgoing email message
Date 2013-04-13 20:22 -0400
Organization A noiseless patient Spider
Message-ID <kkcsmt$ak$1@dont-email.me> (permalink)
References <jsgjm85ultv8979ohhb4rtbo63lagjk81c@4ax.com>

Show all headers | View raw


On 4/13/2013 4:57 PM, BobMCT wrote:
>   In a very small php program that runs at the end of a daily
> production job I generate an informational email message send to the
> system administrator.  No matter which of the two methods used below
> to generate the message the results are received unformatted.
>
> // generate email message method 1
>
> $Mailmsg  = "[abc.sh] Daily Results Retrieval Job\n\n";
> $Mailmsg .= "One or more error(s) occured during the last\n";
> $Mailmsg .= "execution of the above referenced script.\n\n";
> $Mailmsg .= "$Errs\n";
> $Mailmsg .= "Please review/research file daily.log\n";
> $Mailmsg .= "for more details.\n";
>
> // generate email message method 2
>
> $Mailmsg  = <<<EOD
> [abc.sh] Daily Results Retrieval Job
>
> One or more error(s) occured during the last
> execution of the above referenced script.
>
> $Errs
> Please review/research file daily.log
> for more details.
> EOD;
>
>
> Either one results in the received message being format as:
>
> [abc.sh] Daily Results Retrieval Job One or more error(s) occured
> during the last execution of the above referenced script. {content of
> the $Errs file}  Please review/research file daily.log for more
> details.
>
>
> I'm using PHPMailer to generate/send this message.  I do, however, use
> both these techniques in other programs with the same function and the
> messages are formatted corrected.
>
> Any suggestions/ideas?
>
> Thanks
>

Are you sending the message as plain text or html?  What does the 
message source look like?

What's the rest of your code look like?  Break it down to the minimum 
necessary for us to recreate your problem.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Suggestions on formatting an outgoing email message BobMCT <r.mariotti@fdcx.net> - 2013-04-13 16:57 -0400
  Re: Suggestions on formatting an outgoing email message Christoph Becker <cmbecker69@gmx.de> - 2013-04-13 23:17 +0200
    Re: Suggestions on formatting an outgoing email message BobMCT <r.mariotti@fdcx.net> - 2013-04-13 19:50 -0400
    Re: Suggestions on formatting an outgoing email message Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-14 12:13 +0200
  Re: Suggestions on formatting an outgoing email message Jerry Stuckle <jstucklex@attglobal.net> - 2013-04-13 20:22 -0400

csiph-web