Käynnissä

quick fix

Need someone to look at my code, and let me know what I am doing wrong. process outline:

1) data posted to db from fckeditor

2) data read from db and added to a simple function for sending the email out.

there are 2 options send email as html or as standard text, text works fine, when sending as html, it just shows the html markup instead of sending as html.

I know it's a simple fix I can't remember right now.

btw the function is working fine (just didn't get all brackets here) what am I missing / doing wrong in mime area? or is it something else?

here's the function:

function MailSendFunction ($to, $toname ,$from, $fromname, $subject,$body,$html,$ID){

if ($html == "HTML") {

$mimeheader = "To: $toname <$to>\r\n" .

"From: $fromname <$from>\r\n" .

"MIME-Version: 1.0\r\n" .

"Content-type: text/html; charset=\"iso-8859-1\"\r\n" .

"Content-Transfer-Encoding: 7bit\r\n";

} else {

$mimeheader = "To: $toname <$to>\n" .

"From: $fromname <$from>\n" .

"MIME-Version: 1.0";

}

//$body = '<html><body>' . $body . '</body></html>';

if (@mail($to, $subject, $body, $mimeheader)) {

$updatestr = "DELETE from nesletterque WHERE ID='$ID' ";

mysql_query($updatestr);

Taidot: PHP

Näytä lisää: text markup, quick text, get my fix, simple fix, quick fix, mail fix, iso, fix php email for, fix or now, email sending process, body works, fix mail, iso 8859 charset, php brackets, email missing, php encoding, missing email, mime html, brackets, sending email function, brackets php, quick data, fix quick, body know, quick function

Tietoa työnantajasta:
( 17 arvostelua ) Jasper, United States

Projektin tunnus: #492979

Myönnetty käyttäjälle:

utpal4job

Ready to start. Please refer PMB. Thanks.

30 $ USD 0 päivässä
(64 arvostelua)
5.9

8 freelancers are bidding on average $30 for this job

NeOLiO

Hi, Please check PMB. for details. Thanks, Best Regards, NeOLiO

30 $ USD 0 päivässä
(95 arvostelua)
6.6
halezabux

Hi,I can help you right [url removed, login to view] forward to your reply. Thanks

30 $ USD 0 päivässä
(48 arvostelua)
6.3
soumyadeb

Can you please check your PM

30 $ USD 1 päivässä
(39 arvostelua)
6.1
youspaze

easy task for me, please give me the job

30 $ USD 1 päivässä
(27 arvostelua)
5.6
lampcoder

I will help you right away

30 $ USD 0 päivässä
(4 arvostelua)
3.3
puneIT

please check pmb hope you will get the right person

30 $ USD 1 päivässä
(3 arvostelua)
2.5
vanneladas

its easy task give plz check pmb

30 $ USD 1 päivässä
(1 arvostelu)
0.0