By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,062 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,062 IT Pros & Developers. It's quick & easy.

Mail Sending Problem

AMT India
P: 64
In my application there is an email sending option.But the email is missing its images are missing,and the content of the mail is displayed in html tags.

this is the example code
Expand|Select|Wrap|Line Numbers
  1.  
  2.           $msg="<table width='800px' >
  3.                      <tr><td colspan='2'><img src='www.siteurl.com/img/head-lug-ora.jpg'    /></a></td>Hi good morning</tr></table>';   
  4.  
  5.             $to = $recemail;
  6.             $subject = 'subject';
  7.             $headers = "MIME-Version: 1.0\r\n";
  8.             $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
  9.             $headers .= "From:<test@test.com>";
  10.             $mail_sent =mail($to,$subject ,$msg,$headers)
  11.  
  12.  
Regards,
AMT
Dec 14 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 105
Look at the source code of this message in ur email client.
Some clients eg Yahoo modifies URLs before dumping.

Another thing you could try is adding the http:// before the www
Dec 15 '07 #2

AMT India
P: 64
Look at the source code of this message in ur email client.
Some clients eg Yahoo modifies URLs before dumping.

Another thing you could try is adding the http:// before the www

I have tried with http, but its not working
Dec 17 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.