hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Sending an html header to the mail() function
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Sending an html header to the mail() function

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-15-2002, 01:32 PM
rami90_999 rami90_999 is offline
Newbie
 
Join Date: Sep 2002
Posts: 14

Sending an html header to the mail() function


$header = "From: \"".addslashes($sender_name)."\" <".$sender_email.">\r\n";
$header .= "Reply-To: ".$sender_email."\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$header .= "X-Priority: 1\r\n";
$header .= "X-Mailer: PHP / ".phpversion()."\r\n";
$header .= "Cc: ".$other_email."\r\n";
$header .= "Bcc: ".$another_email."\r\n";

ok.. so now i add put $header into mail() but.. where do i put the content? and is it possible to add variables to the html content? go in and out of php adding the vars and going out again.. is that possible? or is there a way around it through javascript?

-Rami

Reply With Quote


Sponsored Links
  #2  
Old 09-15-2002, 01:42 PM
The Prohacker The Prohacker is offline
iNET Interactive
 
Join Date: May 2001
Location: Dayton, Ohio
Posts: 4,869
PHP Code:
mail($to$subject$message$header); 
This what you want?

__________________
-Mat

Reply With Quote
  #3  
Old 09-15-2002, 01:51 PM
rami90_999 rami90_999 is offline
Newbie
 
Join Date: Sep 2002
Posts: 14
no.. uve put the header variable in the mail() with all the others.. we dont need that.. $header is enough for all of them.. what im asking is where can i put the content in the header variable? or do i have to add another permiter/? and can i add variables to the html email? like go in and out of php?

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
eleven August Email Security Report Sees Highest Spam Growth Rate in Two Years Web Hosting News 2012-08-08 13:22:20
cPanel Launches Version 11.32 of Control Panel and Web Host Manager Web Hosting News 2012-02-15 12:46:33
Hurricane Electric Offers Online Courses for Developers and Designers Web Hosting News 2011-11-14 21:51:44
Web Host Rackspace Adds New Features to Cloud Load Balancer Web Hosting News 2011-09-16 16:35:04
Patch Released for Apache Software DDoS Vulnerability Web Hosting News 2011-08-26 15:03:10


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?