Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Formated Email Displaying HTML Code


I'm sending formatted emails that normally work fine, using the following header:

MIME-Version: 1.0

Content-type: text/html; charset=iso-8859-1

From: John Cook <jfoc@sev.com.au>


However, one person I send it to (unfortunately, the client I'm actually designing this email for) sees it as HTML code, no formatting. She does use MailMarshal, an email content filter. And the header in the returned email contained these lines:

X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - elaine.networkeleven.net
X-AntiAbuse: Original Domain - hartleyfamilylaw.com.au
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [0 0]
X-AntiAbuse: Sender Address Domain - elaine.networkeleven.net

My question - would an email filter block HTML formatting? Should I do my header differently?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Displaying Html Code On PHP Generated Page
I am trying to create a link page in my php application. this is a page that will display a block of html code that a visitor can copy and paste into their web site to create a link back to mine. My PHP page has a line in it like this:

define('TEXT_INFORMATION', '<html page code is here>');

I have added the html code to create the page as noted above. the page contains a same of the banner image file and the html code that goes alon with it. My problem is that I haven't been able to "quote" the html code so that ir will not be executed.

every time I try to run the application from my web server my page will display two copies of the banner iimage not on banner image and text block like it should. Any suggestions?

Displaying Text/html In Web POP Email
is it possible that message from web POP mail ( through sockets) appears as html (or text) if it is sent as html, not to appear like source file of the html document? I use web POP mail which is not mine and it displays without problem emails sent as text/plain but shows complete source with all tags if the email is sent as text/html, in other words, it´s useless and very hard to read for user.

HTML Email Can Only See The Code
I create a PHP script like the following to send a form output, but only the html code is shown in the html, really can't find any mistake:

<?
for ($i=0; $i<count($uniEmailArr); $i++) {
$to = stripslashes($uniEmailArr[$i]);
$subject = "testing";
$body = "<b>test</b>";
$headers = "From: Marketing <mktg@co.biz>";
$ret = mail($to, $subject, $headers, $body);}?>

Returns only a message with the body as below: (only subject is correctly inserted in the email) <b>test</b> From: Marketing <mktg@co.biz>

Need Email Address From Submitted Html Email Form
I have an html email that contains a form with questions for the user to fill out. Without asking the user to re-input there email address into the form, is there a way for me to grab the email address its coming from when the user submits the form to the php processing program. I need a way to match the questions to the user when they submit the form.

Displaying Code
I'm trying to build a help file for my web application that includes displaying some of the actual code in the app. Whenever I submit code to the database with form I'm using it behaves like its part of the application.

If the code is wrapped in <??> it doesn't even display on the web page. I tried using <? but when I update the record, it converts to <? and the code disappears again. Is there some code I can wrap everything in to display my script properly?

PHP Code Not Displaying In IE 6
I'm a newbie to PHP and am have problems getting simple PHP page
(php_test_page.php) to display correctly. The page is:

<html>

<body>

<H1>Test Line 1</h1>

<?PHP echo '<H1>Test Line 2</h1>' ?>

</body>

</html>

Test Line 1 displays fine by not the PHP line. If I look at the source with
the browser (IE 6), the line is still there.

I'm not sure if the following is the problem. I might have two problems
here. However, my default web server is not running and I can't seem to
start it. The following is the scenario with XP Professional:

- Click Control Panel

- Click Performance and Maintenance

- Click Administrative Tools

- Double Click Computer Management

- Open Services and Applications

- Open Internet Information Services

- Open Web Sites

- The "Default Web Site" is has a red error sign is marked as
stopped. Clicking "Default Web Site" and click "Start" yield an error dialog
with the following message. "Unexpected error 0x8ffe2740 occurred."

Displaying PHP Source Code
What dictates that .phps files display source code?

I have two examples, one where it all works as expected and one where it doesn't .... and it's really confusing.

Displaying Table In Php Code
I have a PHP script that has a drop down to select a record, then it should display some text from a database and then display a table of information below it. But, the table is displaying at the top instead. Code:

HTML Email Using PHP Problem (Receive Html Tags)
When I send the html email, the only thing I receive is the tags (the
html codes basically). I want to be able to see the email like a html
page, what is wrong with my code? Here is a copy paste of it.

$HTML = "</html><body><img src='http://www.somewebsite.com/
someimage.jpg'></body></html>";

$headers = "From: $from
";
$headers .= "MIME-Version: 1.0
";
$boundary = uniqid("HTMLDEMO");
// Now we attach the HTML version

$headers .= "--$boundary
".
"Content-Type: text/html; charset=ISO-8859-1
".
"Content-Transfer-Encoding: base64

";

$headers .= chunk_split(base64_encode($HTML));

mail($to,$subject,"",$headers);

print "mail Sent<br>";

The email I receive has this as text:

</html><body><img src='http://www.somewebsite.com/someimage.jpg'></
body></html>

If I Wanted To Have The Text I Enter Into A Database Be Retrived Formated The Way I Want It How Could I Do That
say i want spacing in my text so instead of doing
<br>
<br>
in between the lines
or having to do <href = or <a href = for a link
what could i do to have php enter to mysql or retrive it formated?

Scrips Not Running, Only Displaying Code
I installed Apache, mySql, and php. I go to my server folder and run one of the php scripts that is needed to install oscommerce. IDK whats going on but the brower (firefox) will only display the code and won't run the actually script.

Java Script Code For Displaying Images In PHP?
I have this java script code that updates the "img src" tag of my images on the page...

<script Language="JavaScript">
function showupdate(photo){
document['bigPhoto'].src = photo;}
</script>

Now, is there any way to write this code in PHP (not in Java Script), since I want to save that "photo" variable for later use and manipulation... ???

Displaying Php Code On Website For Learning Purposes
I would lilke to display Php code on my website for learning purposes, without being interpreted by the web server. Just displayed. Highlighter would be better. How can I do it?

Format Source Code For Displaying On A Web Page
Is there a good function or plugin out there to format my source code examples?  I'm writing an article for a web page and want a very simple source code formatter.  Eg: code in black, comments in red, quoted items blue, key words green, class names bolded.

PHP Displaying Html
I have gotten quite a few small scripts to work so far but now that I'm trying bigger and bigger things I keep hitting a snag that I can't seem to find the answer to.

I will either use include() or simply write in the html code for the script to display, but all i get when the script runs is a blank white page. When i view the source of that page all it is is an html tag, head tags, and body tags with nothing between the opener and closer. I've tried everything i can think of to fix the problem and sometimes it pops up and sometimes it doesn't and I can't see the difference in my code that is making this happen.

Displaying Php In Html
I have a php search engine script, it works fine and gets results from a mysql database.

I was displaying the results in my html pages by way of server side parsing using php include. For some unknown reason after one year of faultless operation (I did not alter anything) it began to parse my results incorrectly. It would parse the wrong id number for data entries. For example it should have displayed id=3456, instead displayed id=17500 which did not exist.

I gave up trying to solve this problem and used an iframe to display the php search results. But I have been advised that many visitors could have disabled the display of iframes (iframes are being used to inject malware into visitors computers so more and more they will be blocked) into the browser.

Is there any other option to get my php script results to display in my html pages?, could I use javascript to display the results of my php script?

Displaying PHP In HTML
I have a login.php, members.php and members.html. Right now, if you login successfully you are taken to members.php. I want to display the users name upon successful login. I can do this in members.php, however I want to display it in members.html (because in HTML pages I can make layout tables/cells). I store the users first name (f_name) and last name (l_name) in session variables with the following code (from login.php):

Displaying Email Addresses - Spam Protection
is there any function or class that converts you@example.com into
you [at] yourdomain [dot] com when an actual email is passed to the class/function?

I wrote <?php ...

Security Code Image In PHPNuke Login Isnt Displaying
i installed the PHP Nuke in a remote web space bought from prackhost.Problem is that iam not able to get the security code to login to the site as admin or normal user. All the remaining images like links and logo are comming except that security code. Iam not able to do any furthur action.

Displaying Data In Php - Like HTML?
How do I display data from MYSQL in PHP in an attractive and structured table(HTML) format? For example: I want my database to display all the reviews of a particular movie(like metacritic.com) like this: Code:

Displaying A HTML Table With PHP
I'm new to PHP and I'm trying to get my head around databases at the moment. So far I have a page that kinda takes the mickey and takes a few details from you, it then creates a cookie that can be removed later. It also prompts you to add the data you gave to a database.

All this works perfectly, but when it comes to displaying the results of the database, all I can show is the first entry in the table. Can someone please tell me how I'm supposed to see all of them?

I've read other articles but they don't make much sense to me.

BTW, the database details are as follows:

Database name: visualanteorg
Table name: people
Fields: id, name, shoe_size, job

As you will see if you choose to look at the pages, getting the information out is not a problem, it's just formatting it how I want it, so each entry appears under the other in the table.

Displaying Data In Html Table.
I wondered if anyone could offer some guidance, I trying to write a
php script to connect to a database, and display the records in a
table.

I found the code here in a php4 text, and when I run this directly
through the php intrupeter, the line Successfully connected is display
and 4 as the number of rows.

The database table we connect to, has three field username, firstname,
surname.

When I tried a while loop, to display the data in a table. No values
were displayed.

Could anyone possibly demonstrate how to display the username,
firstname, surname values in a basic table?

<?php
function db_connect(){
global $MYSQL_ERRNO, $MYSQL_ERROR;

$link_id = mysql_connect("localhost","user04", "password04");

if(!$link_id){
$MYSQL_ERROR = "Connection failed";
return 0;
}
else if(empty($dbname) && !mysql_select_db("database04")){
$MYSQL_ERROR = mysql_error();
return 0;
}
else return $link_id;
}

!$link_id = db_connect();
if(!$link_id) die(error_message('Error connecting'));

$result = mysql_query("SELECT * FROM users");
if(!$result) error_message('Error in selection');
else echo "Successfully connected. ";

$query_data = mysql_fetch_row($result);
$total_records = $query_data[0];

if(!$total_records) error_message('No records');
else echo "$total_records.";
?>

Displaying Variables In Html Form
Below i have a form which i want to be filled with variables sent from the last page. can anyone tell me why the variables are not showing - I think its something to do with the syntax of the php inside the html form Code:

Displaying A Html Form With Php Echo
I a have a form for users to enter details. Before the form is shown the user enters a number of values they need to enter.

So the amount the user enters first is the anount of rows the user is given to enter there details. To do this iv used a while loop and a $count variable.

My problem is with echoing the form. I must be doing it in a completly non standard way as allthough firefox displays it perfectely ie doesnt display it at all. Code:

Displaying Japanese Characters In Subject Line Of Email Using Php String
$ResponderSubject = "&#12486;&#12489;";

I have the above line of code, which displays some Japanese characters. This particular string will be displayed in the Subject line of an email. The problem I'm having is that the actual ASCII characters are being displayed instead of the Japanese characters. Is there a way to fix this?

PHP Displaying Info Input On HTML Form
I'm in an exercise where I've created an order form in HTML. The form displays properly and allows me to input certain test order info just fine. The relevant lines in the HTML form are: Code:

Php Code To Email Attachments
I have a simple form I use to send emails when I am away from the office (copied below).

Can anyone tell me the php code to get the form to send attachments?

------------------
<? if if ($submit) {
mail($MYEMAIL,$SUBJECT,$MESSAGE,"From: $EMAIL");
} else {
echo "Send Email";
}?>

<FORM METHOD=POST>
To: <input type=TEXT name="MYEMAIL">
From: <input type=TEXT name="EMAIL">
Subject: <input type=TEXT name="SUBJECT">
Message: <textarea name="MESSAGE"></textarea>
<input type=SUBMIT name="submit">
</FORM>

Code For Form To Email With Attachment
Can someone guide me on how to the above functionality.

Add Email Validation To Existing Code?
I have a mailing list script that I have been using for some years now. I got it from the web and thought that it validated the email until I started receiving all sort of garbage through the mailing list which were not valid email addresses. Can somebody please tell me how to amend the code in such a way that it prevents people from sending invalid emails. Code:

Creating Email Addresses In Php Code
Is it possible to create email addresses in php code? I have checked the documentation and can't find it anywhere.

Trying To Add Email Notification To Download File Code
I have used some free code for listing files for download, but I want to
send an email to the administrator when the file has been downloaded. I
have got some code in here that does it, but it will not print in the
username or email amddress of the person doing the download - which I am
collecting from a form on the previous page. I can get the name and
email address to print out normally, just not into the email sending
body. I have attached code below:

<?php
//## snip
//###http://www.tbmnet.de/tbmnet.php?content=php_downloader
//###Copyright (c) 2004 Till Biedermann <tillbiedermann@yahoo.de>####

//################################################## ##############################
//#######
//###CONFIGURATION - edit these variables for your needs.####
//#######
//###!!! pay attention to the syntax !!!####
//#######
//################################################## ##############################

// main configuration------------------------------------

$standalone= "true";

$custom_script_name= "downloader.php";

$enable_stats= "true";

$download_stats_file= "./download_stats";

$download_folder= "./downloads/";

$auto_create_filelist= "true";

$email_notify = 1; // Would you like to get get an email when
someone downloads file? 1 = yes 0 = no

$admin_email = "webmaster@-.com.au"; // if so enter email address here

// define download filelist when auto_create_filelist is set to
"false"-----------------

$download_filelist = array("name1" =array("file1.zip",
"application/octet-stream",
"description1"),
"name2" =array("subfolder1/file2.zip",
"application/octet-stream",
"description2"),
"name3" =array("subfolder2/file1.zip",
"application/octet-stream",
"description3"));

// standalone modus configuration--------------------------

$headline_string= "List of avalible downloads";

$css_code= <<<CSS_CODE

/* here you can edit the css code */

body{font-family:Tahoma, sans-serif;}
img { border:0px;
margin-top:6px;}
h2{margin-bottom:30px;
background-color:#eeeeee;
color:#c0c0c0;
letter-spacing:.2em;
padding:.2em;
text-align:center;
border-top:solid #aaaaaa 1px;
border-bottom:solid #aaaaaa 1px;}
table{border-collapse:collapse;
width:80%;
margin-left:auto;
margin-right:auto;
margin-bottom:10px;
border:solid #dddddd 1px;}
th{background-color:#dddddd;}
td{padding:8px 10px 8px 10px;
background-color:#ffffff;
border:solid #dddddd 1px;}
a{text-decoration:none;
font-weight:bold;}

/* css code editing ends here */

Parse PHP Code In .html??
I was wondering if it's possible to parse PHP code in .html documents without requiring root access (since I'm on a virtual server). I want to make a two line call to a log program, but I don't want to have to change all of my .html files to .php.

HTML Code In Eval
I'm currently trying to put some HTML code into a variable and to use
it later.
Any ideas, why TEST1 in the following example displays a link, while
TEST2 only displays a text?

<html>
<head>
</head>

<body>

<!-- TEST1 -->
<a href="www.test.com">this is test1</a>

<br><br>

<!-- TEST2 -->
<?
$teststr="?><a href="www.test.com">this is test2</a><?php";
eval($teststr);
?>

</body>
</html>

Embed A Php Code Into Html
I want to embed a php code into my html file. But its not showing anything. The same code works when I rename the file as .php

<html>
<body>
<?php echo "hi";?>
</body>
</html>

This code works as hi.php3 but doesn work when I rename file to hi.html.

Put HTML Code From A File
How can I put HTML code that is in a file PHP have any funtion or I have to do it?

Embedded HTML In Php Code With 5.1.1
why this code works in 4.X, 5.0.X and not in
5.1?

<?php
function myfunction(){

*** php code ***
?>
<a href="bla.bla">bla</a>
<?
*** php code ***

}

?>

when i run it under 5.1 i get the error "Parse error: syntax error,
unexpected $end in" on the last line of the file. i drop the embedded
html and it works fine.

i know doing it this way is kinda sloppy and on my list of things to
fix, but that can't be done right now. is there some setting in 5.1
where i can turn this back on or do i have to downgrade to 5.0 again.

Color The PHP Code Into HTML
I have a website source code website. I want my code in HTML page is colored as standard color syntax. Are there anytool that can help me in this problem. For ex: My code is

<?echo "something";?>

I want the code in HTML looks colorful like:

<?echo "something";?>

Ofcourse, I can change the color manually, but I have tons of code and dont want to do it by hand.

Html Code From Folder
How can I write a php code that when it is include in a html page it
create a menu link automatically, reading from a main folder its
subfolder and html files?

Embedding Php In Html Code?
I'm a new boy to php and working on a web site with long sections of
code that could be done as includes apart from one or two things
changing.
I've tested the following and it works, but what I really want to know
is am I OK placing php code inside a html line like this, or could there
be problems?

<!-- html code for test.php -->
<!-- lot of code cut -->
<a href="<?php print $filename; ?>"><?php print $title; ?></a>
<!-- lot of code cut -->
<!-- end of test.php -->

<!-- which is called in the main file like this -->
<?php
$filename="index.php";
$title="Index Page";
include ("test.php");
?>

HTML Forms Within PHP Code
i want to do is put an "HTML form" from a PHP code, how do i do this ?? is there a way to do it? Code:

How To Get HTML Code Of Another Page
Can someone direct me to a code that will go to another page and retrieve the html source for parsing within a php script?

HTML With PHP, How I Can Add PHP-code In HTML...
Could you help me. How i can add my PHP script or PHP- code in HTML-file.

Html In Email
how do you send an html email? is it possible to send an html form as an email, so the user can hit submit and run a php script back on my server?

HTML Email
I have a mailing list that I made in PHP. But it only does text messages. I would like it to do HTML messages as well. So I wanted to know if I can get any pointers on how I can go about doing this.

Url In Html Email
I have written a php script in which to send emails to mysql stored emailaddresses with html format. I write the email in a form that I than send to send_email.php to process. The emails are sent ok, no php errors, but when i open the email, the url is not correct. It gives the link, but it links to: Code:

PHP HTML Email
I'm trying to make my HTML email a bit smarter and not include the ship to info if it is not filled out. How do I make the code within the $message variable interpret the code:

PHP HTML Email
I had a PHP script that sent an html email from a Flash form. It was all working on a Windows based server. Then my server was switched to a Linux based one. It now sends the email, but has a lot of random characters and doesn't format the text using the html tags. Code:

How Can I Email A HTML Doc?
i want to have a nicely formatted email, which ive got in email.html.  What i want to do is to have that emailed to a specific email, as the actual email content.  Eventually it would become a php file, as its the confirmation email for signup.

Carriage Returns On Html Code
I'm rather new to PHP, though not to web developing. I'm developing a dynamic site with PHP and I have a problem with the HTML output.

It looks like PHP is adding an extra carriage return for every line of code it outputs, which makes the layout to break down.

An example:


Copyright © 2005-08 www.BigResource.com, All rights reserved