Google Groups Home
Help | Sign in
Bulk Mail using SMTP
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Peter  
View profile
 More options Apr 29, 10:42 pm
From: Peter <pe...@ozenet.com.au>
Date: Tue, 29 Apr 2008 19:42:15 -0700 (PDT)
Local: Tues, Apr 29 2008 10:42 pm
Subject: Bulk Mail using SMTP
Hi

Successfully implemented this on a Linux server and then decided that
I needed to do the same on a Windows Server using SMTP.

So

Added the classes:
require("../../classes/mime/smtp.php");
require("../../classes/mime/smtp_message.php");

Created the Class & set the SMTP Variables:
$email_message=new smtp_message_class;
$email_message->host_name="mail.aapt.net.au";
$email_message->host_port=25;
$email_message->ssl=0;
$email_message->localhost="localhost";
$email_message->direct_delivery=0;
$email_message->timeout=10;
$email_message->data_timeout=0;
$email_message->debug=1;
$email_message->html_debug=1;
$email_message->pop3_auth_host="";
$email_message->user="";
$email_message->realm="";
$email_message->password="";
$email_message->workstation="";
$email_message->authentication_mechanism="";

Everything else is the same as the Linux Bulk Mail App, which works.

The Windows one failed because:
Send() retains $this->host_name as mail.aapt.net.au- OK
StartSendingMessage() thinks $this->host_name is localhost- NO GOOD.

I fixed it by adding a line in StartSendingMessage() setting $this-

>smtp_host="mail.aapt.net.au";

It then worked.

Any Ideas?

Thanks. This is a really good PHP Class.

Peter Miller


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manuel Lemos  
View profile
 More options Apr 30, 1:21 am
From: Manuel Lemos <mle...@acm.org>
Date: Wed, 30 Apr 2008 02:21:02 -0300
Local: Wed, Apr 30 2008 1:21 am
Subject: Re: Bulk Mail using SMTP
Hello,

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/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter  
View profile
 More options Apr 30, 1:50 am
From: Peter <pe...@ozenet.com.au>
Date: Tue, 29 Apr 2008 22:50:40 -0700 (PDT)
Local: Wed, Apr 30 2008 1:50 am
Subject: Re: Bulk Mail using SMTP
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?

On Apr 30, 3:21 pm, Manuel Lemos <mle...@acm.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manuel Lemos  
View profile
 More options Apr 30, 2:02 am
From: Manuel Lemos <mle...@acm.org>
Date: Wed, 30 Apr 2008 03:02:53 -0300
Local: Wed, Apr 30 2008 2:02 am
Subject: Re: Bulk Mail using SMTP
Hello

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.

--

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/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter  
View profile
 More options Apr 30, 2:54 am
From: Peter <pe...@ozenet.com.au>
Date: Tue, 29 Apr 2008 23:54:17 -0700 (PDT)
Local: Wed, Apr 30 2008 2:54 am
Subject: Re: Bulk Mail using SMTP
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'.

On Apr 30, 4:02 pm, Manuel Lemos <mle...@acm.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manuel Lemos  
View profile
 More options Apr 30, 3:04 am
From: Manuel Lemos <mle...@acm.org>
Date: Wed, 30 Apr 2008 04:04:33 -0300
Local: Wed, Apr 30 2008 3:04 am
Subject: Re: Bulk Mail using SMTP
Hello,

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.

--

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/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter  
View profile
 More options Apr 30, 4:22 am
From: Peter <pe...@ozenet.com.au>
Date: Wed, 30 Apr 2008 01:22:28 -0700 (PDT)
Local: Wed, Apr 30 2008 4:22 am
Subject: Re: Bulk Mail using SMTP
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";?

I am not trying to poke it, just trying to get it to work. My poke
worked.

I should be able to set a global SMPT mail server without having to
modify smpt_message.php.

Regards

Peter

On Apr 30, 5:04 pm, Manuel Lemos <mle...@acm.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manuel Lemos  
View profile
 More options Apr 30, 4:42 am
From: Manuel Lemos <mle...@acm.org>
Date: Wed, 30 Apr 2008 05:42:29 -0300
Local: Wed, Apr 30 2008 4:42 am
Subject: Re: Bulk Mail using SMTP
Hello,

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.

--

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/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google