1722Re: [bang-phpug] image is not diplaying in email id
- Nov 3 2:32 AMtry setting the headers as mentioned in the PHP manual . you can take a look
at the following code
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Mary <mary@...>, Kelly <kelly@...>' .
$headers .= 'From: Birthday Reminder <birthday@...>' . "\r\n";
$headers .= 'Cc: birthdayarchive@...' . "\r\n";
$headers .= 'Bcc: birthdaycheck@...' . "\r\n";
mail($to, $subject, $message, $headers);
One of the reason could be you are tried to send a HTML mail instead of
plain/simple text, so need to set the proper content type.
Hope this helps ..
On Tue, Nov 2, 2010 at 1:42 AM, udikeri_7373 <udikeri_7373@...>wrote:
> Hello everyone ,
> This is Vinayakkumar here,I m new be to php, I m writing one php
> script that has to deliver e cards i.e images to specified e mail id.
> Problem which i m facing is
> image is not displaying in email other works fine.
> i tried as following code of php
> <html><head><title></title ><body><?php$to =
> "vinayak.udikeri@... <vinayak.udikeri%40gmail.com>";$subject = "Test
> mail";$message = "<img src
> ='http://www.bletchley-park.com/wp-content/uploads/2009/05/php.png' /
> >";$from = "udikeri_7373@... <udikeri_7373%40yahoo.co.in>";$headers
> = "From:
> $from";mail($to,$subject,$message,$headers);echo "Mail
> check out this for reference
> try to give sol...
> thank you
> check out this for proper idea
> Regards ,vinayakkumar
> [Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>