You are here: Re: trying to understand example code for Mail_mimePart::addsubpart() « PHP Programming Language « IT news, forums, messages
Re: trying to understand example code for Mail_mimePart::addsubpart()

Posted by w43l on 10/31/07 10:35

On Oct 24, 5:43 pm, hmbscully <wdec...@gmail.com> wrote:
> What I don't understand at all are the
> $text = $email->addSubPart($body, $params);
> and
> $attach =& $email->addSubPart($contents, $params);

the variables might be there just to hold the return of the function

> lines in that I don't understand why there are the $text and $attach
> variables, because they never seem to be used again.
> I also don't know how to actually send the message.



> $email =& Mail::factory('mail');
about this line i guess this is Perl not PHP you are trying to add
if you want to call a function from a class you should do it like this
$object-name->function_name('param');

 

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

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