php mailto () fuction

Reply

Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: php mailto () fuction

 
0
  #21
Apr 4th, 2008
can the $_request variable be used to recall a page instead of an textarea?
Nope.. You can only use $_REQUEST to get the value from a form.
Umm.. I think you can try,
$message = implode("",file("broad_prev.php")); Not sure, but you can try that.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 347
Reputation: kevin wood is an unknown quantity at this point 
Solved Threads: 1
kevin wood's Avatar
kevin wood kevin wood is offline Offline
Posting Whiz

Re: php mailto () fuction

 
0
  #22
Apr 4th, 2008
it worth giving it a go not much else has seemed to work up to now.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 347
Reputation: kevin wood is an unknown quantity at this point 
Solved Threads: 1
kevin wood's Avatar
kevin wood kevin wood is offline Offline
Posting Whiz

Re: php mailto () fuction

 
0
  #23
Apr 4th, 2008
that has done better than the rest. it has tried to send the mail but only the very last line was showing up on the email. none of the images or text has come through with it.

where the php is on the page being sent it has just sent the closing tags and not the actual image that is being recalled from the db on that page.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 347
Reputation: kevin wood is an unknown quantity at this point 
Solved Threads: 1
kevin wood's Avatar
kevin wood kevin wood is offline Offline
Posting Whiz

Re: php mailto () fuction

 
0
  #24
Apr 4th, 2008
this looks like the way forward for now i will research into this over the weekend and see what i can come up with. thanks once again for you help.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: php mailto () fuction

 
0
  #25
Apr 4th, 2008
hmm.. All the best !
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 45
Reputation: Daedal is an unknown quantity at this point 
Solved Threads: 11
Daedal's Avatar
Daedal Daedal is offline Offline
Light Poster

Re: php mailto () fuction

 
0
  #26
Apr 4th, 2008
Originally Posted by kevin wood View Post
i have just been looking more at the example that uses the textarea and to get the body of the message imported into the email it uses this $message = $_REQUEST["body"];
could this line of ode be modified so that instread of the body in the request it would look something like this

$message = $_REQUEST["broad_prev.php"];
can the $_request variable be used to recall a page instead of an textarea?
That will not work, unless you are posting a variable called 'broad_prev.php'

If you want $message to contain that pages content... use this:
$message = fopen("http://www.yoursite.com/broad_prev.php", "r");
Last edited by peter_budo; Apr 5th, 2008 at 1:31 pm. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 347
Reputation: kevin wood is an unknown quantity at this point 
Solved Threads: 1
kevin wood's Avatar
kevin wood kevin wood is offline Offline
Posting Whiz

Re: php mailto () fuction

 
0
  #27
Apr 7th, 2008
i have looked at the fopen function over the weekend and i thought that the get file_get_contents function would work better than the fopen.

the code i am using now looks like this

$message = file_get_contents ('my website');
but on the email that is sent out it has no content held within it.

do i need to use the fopen, fread, or fwrite functions to get it to display the contents of the page. the page that i am trying to display uses nysql to retrieve images from a database and places them on to the page.

i have a line of code at the bottom which states what should be sent with the message which looks like this

mail($contactemail, $subject, $message, $headers);
should the variable message be set to the contents of the page and therefore be displayed in the message body.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC