Help Email Class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gurzi
Forum Commoner
Posts: 27
Joined: Wed Aug 02, 2006 4:04 pm

Help Email Class

Post by Gurzi »

Hello Guys,

I downloaded a class to send some php emails with HTML but it's driving me really crazy. I'm newbie and trying and starting to use some API's, but this one is really freaking me out.

THe author has an file example, that curiously doesn't work for me.

THe API says this :

# CreateQuotedPrintableHTMLPart
Synopsis

string CreateQuotedPrintableHTMLPart(

string html,
string charset,
(output) int & part

)

Purpose

Create an HTML message part that may contain non-ASCII characters (8 bits or more).
Usage

Pass a html text string and get the created part number in the part that is returned by reference.
Arguments

html - HTML of the message part to create.

charset - Character set used in the part text. If it is set to an empty string, it is assumed the character set defined by the default_charset variable.

part - Number of the created part that is returned by reference.

Return value

An error message in case there was an error or an empty string otherwise. This return value may be safely ignored if the function parameters are set correctly.

And the developer has this in the code :

$email_message->CreateQuotedPrintableHTMLPart($html_message,"",$html_part)

The var html_part doesnt exist, i dont really know where it come from but's ok.

Anyone can explain to me what is
(output) int & part ???

It's a integer passed by reference and what means ouput inside parentesis ?
What the developer means there with part ?


I downloaded the class from http://www.phpclasses.org/browse/package/9.html

Any help will improve a lot my work, thanks everyone :)
Post Reply