Re: Re: Php Mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi there
thanks for the reply
when i use the yahoo account, it works, but if i use
gmail or  hotmail, i m getting the html coding
instread, please guide me

--- strongkill <strong@xxxxxxxxxxx> wrote:
> 
> 
> have a try this.
> <?php 
> $headers  = "MIME-Version: 1.0\r\n";
> $headers .= "Content-type: text/html;
> charset=BIG5\r\n";
> //$to  = "yongqiang.yuan@xxxxxxxxxx" . ", " ; //
> note the comma
> $to .= "strongkill@xxxxxxxxxxxx";
> $subject = "html";
> 
>
$fp=fopen("http://www.strongd.net/newlatter/mail.html",r);
> while (!feof($fp)) {
>         $str.=fread($fp,1024);
> }
> fclose($fp);
>         mail($to,$subject,$str,$headers);
> ?>
> 
> 
> --- In php-objects@xxxxxxxxxxxxxxx, "Anuradika"
> <anuradika80@xxxx> 
> wrote:
> > 
> > Hi guys, I have been seding mail using php with
> html format. It 
> works 
> > fine in my office IIS server, but when i upload it
> to the web 
> server, 
> > it doesnt seem to be sending a HTML format mail,
> but rather the 
> html 
> > code itself.
> > 
> > $headers  = "MIME-Version: 1.0\r";
> > $headers .= "Content-type: text/html;
> charset=iso-8859-1\r";
> > $txt_Msg = "<LINK
> href='http://www.hotmail.com/include/styles.css' 
> > type=text/css rel=stylesheet>";
> > $txt_Msg = $txt_Msg . "<body topmargin=3
> bottommargin=3 
> leftmargin=0 
> > rightmargin=0>";
> > $txt_Msg = $txt_Msg . "<table width='600'
> border='0' align='center' 
> > cellpadding='0' cellspacing='0'>";
> > 
> > so when i display the $txt_Msg, it works well, as
> in the table is 
> > shown nicely, when in the mail, the code is being
> displayed instead 
> of 
> > the GUI.
> > Please help
> 
> 
> 
> 
> 
> 
> 

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html


PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux