You are here: Re: what is wrong with this mail script « PHP Programming Language « IT news, forums, messages
Re: what is wrong with this mail script

Posted by Alvaro G Vicario on 10/21/63 11:25

*** yoelgold@yahoo.com wrote/escribió (31 Aug 2005 14:18:55 -0700):
> $mfrom = "From: Baltimore Trails <i...@baltimoretrails.com>\r\n";
> $mbody = "text....asdfasdfasdfasdfasdfa­sdf";
> $bcchead1 = "Bcc: i...@baltimoretrails.com\r\n";
> $bcchead2 = "Bcc: yoelg...@baltimoretrails.com\r\n";
> $header = "$mfrom $bcchead1 $bcchead2";

This code creates these headers:

From: Baltimore Trails <i...@baltimoretrails.com>
Bcc: i...@baltimoretrails.com
Bcc: yoelg...@baltimoretrails.com

If first char in line is a white space, mail server will think it's not a
new header but the previous one continued. Remove unwanted spaces.


--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация