FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Suggestions on formatting an outgoing email message
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Suggestions on formatting an outgoing email message [message #181105] Sat, 13 April 2013 20:57 Go to previous message
r.mariotti is currently offline  r.mariotti
Messages: 17
Registered: December 2011
Karma:
Junior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: eine PHP mit video faehigkeit
Next Topic: framwork
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 21:53:25 GMT 2024

Total time taken to generate the page: 0.03881 seconds