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


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Send Contents Of Page In Email


is there not an easy way to simply send the contents of a page in the
body of an email? i.e. i have a report.php that pulls from a mysql db.
i need to be able to send the displayed file right in the body of the
email. can anyone help with this?




View Complete Forum Thread with Replies

Related Forum Messages:
Send Email - Page Where You Enter An Email Address And Click Send.
I am interested in creating an "email -this" type ability for a website. I am sure most people have seen an "email -this story" type link that is standard on most news web sites. You click such a link and then it takes you to a page where you enter an email address and click send. The link for the story and the title are not editable. Does anyone know where I can find example code of how to do this with php, and any explanation of how this works.

View Replies !
How To Send Email With Table Of Contents
i have to send a mail with the tablular column structure. I tried a lot. But the code is working in some browsers and some browsers like gmail and yahoo ,that mail is not able to open.

View Replies !
Send The Contents Of Flash Form Through PHP In Email
I want to send the contents of a form from Flash via PHP through email. Now I can do this fine when my email message 'body' is made from one variable, but for some reason when I try to gather multiple variables (from multiple fields in the form) and send these as the message body.

<?php
$sendTo = "enquiries@example.com";
$subject = "Website Quote Enquiry";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">";
$headers .= "Reply-To: " . $_POST["email"] . "";
$headers .= "Return-Path: " . $_POST["email"];
$EcompName = $_POST["compName"];
$EcontName = $_POST["contName"];
$Eemail = $_POST["email"];
$Etel = $_POST["tel"];
$Edetails = $_POST["details"];

View Replies !
Page Contents To Email
I have scripts that will email a link to the page but what I need is an email form that will allow someone to put an address in and when they click 'Send' on the form certain contents that have been passed to the page will be sent in the email.

View Replies !
Send Email As Html Page
i need to be able to send an email back to a person once they have completed a form in the exact format of how they filled it in. ie, as a html page with all the text they entered in the text boxes and selected checkboxes, radio buttons, etc.

the problem is the page is very big and has many fields so i was thinking, on my action page i just include a template to achieve this.....and in the template can i do this type of thing: <input type="text" name="<php echo $txtAString ?> " size="12">

//which is the name of the text box on the entry form on the previous page ...will that get the text out of the previous page and put it in with the included template?

View Replies !
PHP Send Information/page To Email
i have a website and i have a log in system with php and mysql, that works fine however i want my registered user to be able to send me information by email, they'd fill in a text field then press send. I need this to send the whole page so that it gets their username in so people can't put a another persons user name. Code:

View Replies !
Send Email Include Page With Dynamic Data
I want Users to fill in from. data go's to MySQl send email to user and myself containing "form tekst.

View Replies !
Read Contents Of An External XML Page And Then Parse Its Contents
I have a URL that generates an XML page. I'm trying to read its contents and parse the information. But, I keep receiving these error messages: Code:

View Replies !
Opens Email Attachments And Copies The Contents Into The Body Of The Email, In Pdf Format
I am working on a php script that opens email attachments and copies the contents into the body of the email, in html format. I am looking for a way to do this with pdf files - does anyone know of a way to convert pdf to html on the fly using php?

View Replies !
Send The Contents
I have a form on my website that uses arrays. Basically I can't figure out how to send the contents of those arrays in the body of an e-mail using the mail() function. If I try just putting the name of the array like $array it will just send the text "Array" to my mailbox, which is normal. Unfortunately, the usual means of displaying the contents of an array such as "while (list($key,$value) = each($array)" won't work in the mail function. is it possible to send the contents of my arrays in the body of an e-mail and if so how do you do it?

View Replies !
How To Send Email Automaticly To Admin When Users Send A Form?
how to send email automaticly to admin when users send a form....example...a booking form..therefore the admin will alert of the booking..

View Replies !
Send The Contents Of An Html Form.
I am trying to send the contents of an html form. Everything works great up until I try to mail the contents. Code:

View Replies !
Send Over Thousand Email, How To Make Script As Not Email Spam?
I want to make a same script in PHP for send mail to my customer. Over
15.000 email in the list. How to pause 2 sec after sending 100
messages as this site? and continue sending email until send message in
all emails???

What's idea? do you have exist script? Please give me a solution?

View Replies !
Email Problem ( I Am Unable To Send Email In Diffarent Language )
I want to send the mail in Russian language. The mail content has two part, 1st part comes from database, and other part is entered by user in russian language. I am using UTF-8 in database.

I am also used Utf-8 (<meta http-equiv="Content-Type" content="text/html; charset=utf-8" in all web page. My site and  is working perfectly.

But I am unable to send mail in diffarent language. The mail is send well, but I am getting the mail with unicode chrecter of the language instade of original language. Code:

View Replies !
How Do You Make The Contents Of A Text Box Remain, Even After Clicking Send, With Errors ?
How do you make the contents of a text box remain, even after clicking send, with errors?

At the moment, the visitor inputs a load of text into the comments box, but if they click send and there's errors in other fields on the page, the comments box goes blank and they have to start all over again ...

View Replies !
Grab Email Addresses From MySQL And Send An Email....
I am making a simple mail form that will SELECT email address from a MySQL table based on the userid of the person sending the email.

if (isset($_POST['submit'])) {
require('../database.php');
$result = mysql_query("SELECT * FROM emailList WHERE merchantId = '".$_SESSION['id']."'") or die(mysql_error());

What would be the most efficient way of storing the email addresses from MySQL (may be 1 or may be 100) and then sending them in BCC to all the people gathered from the MySQL table?

View Replies !
Send A Mass Email From A Database Of Email Addresses
Im trying to send a mass email from a database of email addresses. basically, once a user signs up, their email is inserted into  table in the database. I would liek to make a link that i can click form the backend that says "send out newsletter" this would take all the emails in the database and put them in outlook ( mail app for me), seperate each with a comma and then i could compose a message. here's what i have come up with so far..
//Once connected to database

$mailto = mysql_query("SELECT * FROM newsletter");
while($row = mysql_fetch_array($mailto))
  {
echo "<a href=">. $row['email'] ."/">Send out Newsletter</a>";

}
Ive had it working but obviously it s making each email a seperate link that says "send out newsletter" i would like it to be one link that combines all the emails in a "mailto:" format.

View Replies !
Send A Email With Html As Well As Php.sending The Email
im trying to send a email with html as well as php.sending the email is the easy part.the problem is with the message part.if i put this code in the textarea it display the html tags in the email.yet the php is fine. Code:

View Replies !
How Do I Email The Contents Of A Webpage?
How do I email the contents of a webpage?

My project is coming along nicely and I have it almost completed.

It started with putting data into a mysql database and allowing people to
select items wanted from a big list. I now can update the database with the quality wanted and I can generate an email to the person however I cannot get the list of items wanted into the email.

The list is coming from a mysql database based and comes up in a table type
format

My question is how do I get the information from the 2nd page into the body
of an email?

View Replies !
Send This Page Script Used To Send Spam.
I had installed a simple php script (obtained for free from the web) that allows a visitor to forward a page to a friend. It worked great but now a spammer is using it to send thousands of emails. I have deleted the feature and also the php file but no successs. What can I do? Please help. While I have some responsibilities of a webmaster, my technical abilities are very limited.

View Replies !
Refresh Page With New Contents Without Leaving The Page?
Basicly what i want to do is: i have a bunch of links. when i click that links the dynamic content from a mysql db appear above the links. I need to do this without open a new page because i'm using mootools with the acoordeon script, and inside each "tab" theres contents. when i'm inside one tab i want to have links, and clicking each link new contents appears.

When i do this opening a new page is easy, i just put on the links something like newpage.php?id=games and then the page newpage.php open and the recordeset from games is echoed. but how to do that without leaving the page? refreshing or something like that.

View Replies !
Email Will Not Show The Actual Txt Contents
the problem I have with this script is not attaching the file this works fine however i have a database table holding emails ready to be sent to people with a message body or contents.

when i run this script it sends the attachment no problem but will not show the actual txt contents of the email. Code:

View Replies !
Include Contents Of Another Script In An Email
I have a php script that sends an email. I want the body of the email to be the details that are presented normally when another script is called.

eg: in the script I have the following:

tep_send_mail('$to_name', '$to_address', '$subject, '$body', $from, $from_address);

which is the following:

TO NAME, TO EMAIL ADDRESS, EMAIL SUBJECT, EMAIL CONTENTS, FROM NAME, FROM EMAIL ADDRESS

$body is a script (lets call body.php)

How can I do this?

View Replies !
Sending The Contents Of A Php Array In A Html Email
I'm creating a site that posts orders to an email address when they're
submitted, these orders need to be in the form of official invoices so
i'm using HTML to format them.

I already have a shopping basket system which adds all of the totals
up and puts them into a nice looking invoice.

What's the best way to take this HTML and put it into an email?
I'm really looking for a way of sending the page via email, like you
can do in IE by selecting File > Send > Page by Email.

The basket script is quite large and i'm trying to avoid running it
more times than neccesary.

View Replies !
Write The Contents Of A Template File Into An Email?
ive been studying php for a few weeks now and ive started a newsletter project to allow a user to login as an administrator and send emails to everyone in a database. Now i've written a script which carries that out, but the output is just too basic.

What I'd like to do now is write a template file which will be included in each email whilst allowing the user logged in as admin to customize any text. I'm not sure if i'm on the right lines but all i think I know is that it involves "implode" Code:

View Replies !
Include An Unsubscribe Option At The End Of The Email Contents
When sending an email i want to include an unsubscribe option at the end of the email contents. Here's the part of the code PHP Code:

$msg2=$msg."<BR>To unsubscribe <a     href=$pt2"."unsub.php?email=$rowdata[em]>Click HERE</a>";
mail($rowdata[em],$sub,$msg2,"$mail_type");

View Replies !
Make A Test To Email The Contents Of A Form Field
Trying to make a test to email the contents of a form field as the email subject, but the subject appears blank. The varables aren't being picked up? code:

View Replies !
How To Send Email In PHP If I Do Not Have Email Server?
I have a PHP/MYSQL system on IIS. I am trying to make my system send emails but I do not know how. I do have an email server but it is not on the same machine that my PHP system is at.

View Replies !
How To Send PHP Email To 100+ Email Addresses
I have a script that send out html email and I have over 100 email address from people who would like to join my newsletter. But I cannot get my script to email all 100+ of these people. Any one know how I can do this? Code:

View Replies !
Email : Send To Email In Recordset
My script sends email fine when I have a hard-coded email address but when I try to dynamically change the email recipient based on the results of a recordset, the email script fails. Code:

View Replies !
Email Form That Uses Array And A Switch Call To Send Values In A Form To My Email
I've got a email form that uses array and a switch call to send values in a form to my email. The problem I'm having is I have a checkbox where users should be able to select multiple values however if they do when I receive the email instead of having the values it prints "ARRAY"...I've included a sample below: PHP Code:

<?
// Key => (required, type, string)

// Types:
// 1 - Long text
// 2 - Short text
// 3 - Textarea
// 4 - Radio
// 5 - Checkbox
// 6 - Dropdown

// 4, 5, and 6 require a 4th value in the array
$mail_form_to = "me@email.com";
$mail_form_subject = "Real Estate Submission";

View Replies !
Use Fopen To Get The Contents From A Web Page
i use Fopen to get the contents from a web page, but I get this
error...

Warning: fopen(http://seb.sleepbot.com:8000/played.html): failed to open
stream: HTTP request failed! ICY 400 Server Full

I am confused as to why I would get this error, because going to the website
manually, it's just fine!! The site isn't even full or anything. Is there
a workaround?

View Replies !
Inserting The Contents Of One Page Into Another
I want to put one php created page inside of another. page1.php PHP Code:
<? 

View Replies !
Refresh Page With New Contents
i have a bunch of links. when i click that links the dynamic content from a mysql db appear above the links.

I need to do this without open a new page because i'm using mootools with the acoordeon script, and inside each "tab" theres contents. when i'm inside one tab i want to have links, and clicking each link new contents appears. Code:

View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:

View Replies !
Send Header Info To A Page, Retrieve Response And Send That As Header
I am sending a header to page.html from sender.php using fgets(). I am then trying to retrieve that page's response, and set that as a header in sender.php in order to set any cookies etc.... that page.html might want to set. Right now I am using the following code:

View Replies !
Redirect The Contents Of Form To Another Page
I just got a new web host and all they support is PHP. I am going to learn PHP, but I need a quick script to help me with something and was wondering if one of you could help me out.

What I want to do is submit a form to a php script and simply redirect the contents of that form to another page to acutally handle the data that is sent through the form post.

Example:
abc.htm ----> redirect.php ----> SomeSite

SomeSite will actually process the form data for me and I have no control over the script on that site. I know what data I have to send to the script on SomeSite, but I want the form post to pass through redirect.php

Now in the IIS/ASP world I would be able to use server.transfer to do this. How would I do this in PHP?

View Replies !
Change The Web Page Contents On Click
I want to sort the data displayed on web page on click of button. I have a combo in which all user have to select the sort order in which he wants to see the data...(The combo box or drop down box contains values "Name, Department Salary and Grade")

The user select the order (say name) by clicking the combo box or drop down box. The moment the user releases the combo or drop down box, I want to refresh the page with new sort order.

View Replies !
Hide The Contents Of A Page Unless Redirected?
I have a website where I sell one downloadable product.  Someone pays for it and then is redirected to the download page.  Problem is they could just bookmark the url and go back and download it again all they want.  Is there a way to prevent that from happening?  Somehow set it up so the page only displays if they've been redirected from PayPal perhaps? 

View Replies !
Include Page Contents Into String
I want to have a page that has some html text that I can change randomly and I want to include it into a string on a page so that I can change as needed. How can I do this?

I'm looking at something like $html = "This is a test" . include(text.html) . "rest of text"; is this possible? Of course not like I have done it.

View Replies !
Force Download Is Getting Contents Of The Page
I'm writing a file to the server using fwrite, and than once it's written, I want an open/save dialog to popup so that the user can download the file to their computer.

The problem is this: the file that you save in the open/save dialog box has the contents of the file PLUS the html contents of the PHP within it. Obviously not ideal. Code:

View Replies !
Reading A Web Page Contents, Worth It Or Not?
this is a question relating to both the PHP and the practicality of it, i am building a system at present and would like to encompass a function which drags lyrics off the Internet for a song based on the song title and artist (extracted via ID3)

however, there does not seem to be on source of lyrics database without ads etc, so if i did it i could:


a) make it do a google 'im feeling lucky' search for ID3->Artist + ID3->SongTitle,

however i would then have to somehow go through the document and strip out everything i.e. ads except the lyrics (I cant think how to do this) not the code..i mean at all, as there is no criteria we could use to check if the text = lyrics?

or is this just not a good idea and wont work?

View Replies !
Place File Contents Into Table On Page
Hi all. Am new to PHP and trying to get the following to work. I dont know if it is possible at all, and would appreciate any help.

I have a folder called Books. It contains an htm page called books.htm which has some graphic elements on it. It also contains a file (either excel or csv, or tab delimited.... whichever will work best in this situation). This file contains two columns. 1st colums-1st row contains an image name (e.g. alice.gif). And the 2nd column-1st row contains a text discripition (e.g. Alice in Wonderland....bla bla..). And so on for the next rows. The folder also contains the actual 'alice.gif' and all images that are listed in the 1st column.

What i am trying to achive is thus:-
When the books.htm page is called. I want the table in the file to be recreated on the page under the existing graphic elements. In that table, instead of the image names in the first column, i want the actual image (which is present in that folder), to be planted there in that specific cell on the htm page!

View Replies !
Include A Page On A Different Server And Display Contents.
<?
if(!include ("http://forums.devshed.com/newthread.php?s=&action=newthread&forumid=5")){
echo "oops";
}
?>
why won't this work, I cant see the content of the page ....

I want to include a page on a different server and display contents.

View Replies !
Preview Form Contents Same Page, No Refresh
I am setting up a shopping cart for a client who sells imprinted items. He wants to be able to have clients complete a from and get a preview of what the imprint will look like. The choices for formatting are very limited - small, medium, large text; italic, bold, bold italic; arial or times.

I am trying to find a way to have the customer enter the text, make the formatting choices and then hit a preview button. The preview will display right below in the same page, but the values will stay in the form. Code:

View Replies !
Using Php To Send An Email
I would like to know if anyone has experience with using PHP to email a stored password out of a mySQL database. I have a mySQL database which I allow users to connect thourgh PHP web pages and I want to provide the option to email the users password which is stored in the database. Could anyone show me the code to do this or explain where I need to look up to find the information. Thanks in advance for the help!

View Replies !
Cannot Send Email To Myself
I run Apache 2.0.59 and php 5 on WindowsXP.
Server works OK. But I cannot receive the email with the results of the
form.
I made changes in php.ini file, changing [mail function]

SMTP = outgoing.verizon.net
sendmail_from= myE-mailAddress@verizonnet

where outgoing.verizon.net is the actual ISP server name (I found it in
outlook express accounts)

The form has been processed without errors, but I didn't receive any
email. Could you please help me with this problem?

View Replies !
Can't Send Email Through PHP
I am trying to send email through PHP, i used the following code and it seems working every lines...but i can't really get a email from this..

$from="Frankie";
$contents="hello ...how r u ar";
$subject="helo";
$to = "frankie@aristo.com.hk";
$from_header = "From: $from";

print("mailing");
mail($to, $subject, "", $from_header);
print("sent");

View Replies !
How To Send An Email
Hi I want to know how i can send email to my customer list in a specific time for example every morning at around 10:00 am my server will send them email containing articles from my database. I want the server to be able to send email to my customers in a specific time everyday without human interaction.... is there a way to do this?

View Replies !
Send Email To AOL Via PHP?
I have code that sends email to customers via PHP mail() but the mail never gets to AOL customers.  I looked at the headers of two different emails - one sent from the same hosting service/domain with SquirrelMail and the other via PHP.  I see some differences that I am sure are related to why AOL is blocking the emails but I cannot seem to get the Return-Path to override from the PHP - I tried. Code:

View Replies !
Send An Email
I'm trying to set a script to send an email with information from a form. It's quite simple ... I got various  sample scripts from internet , but when i run them , i get the message "mesage sent" but i never get the mail ..

View Replies !
Can't Send Email To
i'm trying to run the following code but i have always the same return "FALSE". Can anyone help me figer out way i have always the same message : 'Can't send email to ' and he send the email like spam:

#!/usr/local/bin/php

<?php
if (mail("nelson@estudoplase.pt","teste","nelson@eusei.com.pt")) {
echo "<h4>Thank you for sending email</h4>";
} else {
echo "<h4>Can't send email to $email</h4>";
}
?>


View Replies !

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