on 04/29/2008 11:42 PM Peter said the following:
smtp_host is a class variable that you can set to whatever SMTP server
domain you want.
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
on 04/30/2008 02:50 AM Peter said the following:
> OK
>
> But why do I have to set it in StartSendingMessage()? Why doesn't
> StartSendingMessage() retain the the same class variable value as
> Send() does?
You should not use the StartSendingMessage because it is private and so
it is not documented. You need to use the Send function to send the message.
on 04/30/2008 03:54 AM Peter said the following:
> I use the Send function. Send() calls StartSendingMessage(). In the
> Send() function $this->host_name is 'mail.aapt.net.au'. As soon as
> StartSendingMessage() is called by the Send() function, $this-
>> host_name resolves to 'localhost'.
The right variable to set is smtp_host. There is no host_name variable.
That is of the SMTP object, which is private and you should not be
poking it.
on 04/30/2008 05:22 AM Peter said the following:
> So where do I set smtp_host? As you can see from above, I set
> $email_message->host_name="mail.aapt.net.au"; Should I have set
> $email_message->smpt_host="mail.aapt.net.au";?
If you read the documentation, you do not need to wonder reading the
source. Only the smpt_host variable is documented and is the one to
use. The host_name variable is not even of this package, it is of the
SMTP class.