freelanceprogrammers.org Forum Index » PHP
Re: Php Mail
Joined: 24 Feb 2005
Posts: 17
Re: Php Mail
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@...> wrote:
>
>
> have a try this.
> <?php
> $headers = "MIME-Version: 1.0
";
> $headers .= "Content-type: text/html;
> charset=BIG5
";
> //$to = "yongqiang.yuan@..." . ", " ; //
> note the comma
> $to .= "strongkill@...";
> $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@yahoogroups.com, "Anuradika"
> <anuradika80@y...>
> 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 ";
> > $headers .= "Content-type: text/html;
> charset=iso-8859-1 ";
> > $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
Joined: 09 Apr 2005
Posts: 2
Re: Php Mail
use this class from Richard Heyes
http://www.phpguru.org/downloads/html.mime.mail/htmlMimeMail-2.5.1.tar.gz
On Apr 9, 2005 11:37 AM, Anuradika Jaganadhan <anuradika80@...> wrote:
>
> 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@...> wrote:
> >
> >
> > have a try this.
> > <?php
> > $headers = "MIME-Version: 1.0
";
> > $headers .= "Content-type: text/html;
> > charset=BIG5
";
> > //$to = "yongqiang.yuan@..." . ", " ; //
> > note the comma
> > $to .= "strongkill@...";
> > $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@yahoogroups.com, "Anuradika"
> > <anuradika80@y...>
> > 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 ";
> > > $headers .= "Content-type: text/html;
> > charset=iso-8859-1 ";
> > > $txt_Msg = "<LINK
> >
href=`http://www.hotmail.com/include/styles.css`<http://www.hotmail.com/include/
styles.css%27>
> > > 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@yahoogroups.com<php-objects-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
--
Chenri J
Taman Palem Lestari B18 - 19A
Mobile CDMA Esia: (62) (21) 926 68 651
Email: chenrijano@...
[Non-text portions of this message have been removed]
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







