i am sending mails to some attachment files. in this i will replace the string with some condition. i concatenate all this to $msg but we a problem in the body of the Message. that is it will repeated at how many time we handle the str_replace what can i do for this.
Expand|Select|Wrap|Line Numbers
- $msg .= "--".$mime_boundary.$eol;
- $msg .= "Content-Type: text/plain; charset=iso-8859-1".$eol;
- $msg .= "Content-Transfer-Encoding: 8bit".$eol.$eol;
- $msg .= strip_tags(str_replace("<br>", "\n", $Body)).$eol.$eol;
- $msg .= str_replace("<br>", "\n", $Body).$eol.$eol;
- $msg .= strip_tags(str_replace("<br />", "\n", $Body)).$eol.$eol;
- $msg .= str_replace("<br />", "\n", $Body).$eol.$eol;
- $msg .= strip_tags(str_replace(" ", " ", $Body)).$eol.$eol;
- $msg .= str_replace(" ", " ", $Body).$eol.;
Expand|Select|Wrap|Line Numbers
- Name :Akpovi Maxwell NoticePeriod : 15 / Days Salary :
- Month 15000 USD NegotiableAvailable From :
- =======================================================
- <br /><br />Name :Akpovi Maxwell <br />NoticePeriod : 15 / Days <br />Salary :
- Month 15000 USD <br />Negotiable<br />Available From :
- <br /><br />======================================================= <br />
- Name :Akpovi Maxwell
- NoticePeriod : 15 / Days
- Salary : Month 15000 USD
- Negotiable
- Available From :
- =======================================================
- Name :Akpovi Maxwell
- NoticePeriod : 15 / Days
- Salary : Month 15000 USD
- Negotiable
- Available From :
- =======================================================
- Name :Akpovi Maxwell NoticePeriod : 15 / Days Salary : Month 15000 USD
- NegotiableAvailable From : =======================================================
- <br /><br />Name :Akpovi Maxwell <br />NoticePeriod : 15 / Days <br />Salary : Month
- 15000 USD <br />Negotiable<br />Available From : <br /><br
- />======================================================= <br />