could someone please fix this?

thanks,

-jon

----------
From: Scott Johnson <[EMAIL PROTECTED]>
Date: Wed, 12 Jul 2000 11:12:14 -0600
To: Jon Stevens <[EMAIL PROTECTED]>
Subject: mail issue resolved in turbine

Hello,


We talked about the email bug in Jyve.

I changed the initCriteria method in
org.apache.turbine.util.mail.SimpleEmail.java

to be:


    protected void initCriteria( Criteria criteria )
        throws MessagingException
    {
        if( criteria.containsKey( EMAIL_BODY ) )
            setMsg( criteria.getString( EMAIL_BODY ) );
        else
            setMsg("NO MESSAGE");
      
        if( criteria.containsKey( RECEIVER_EMAIL ) &&
criteria.containsKey( RECEIVER_NAME))
            addTo( criteria.getString( RECEIVER_EMAIL
),criteria.getString( RECEIVER_NAME ) );
       
        if( criteria.containsKey( EMAIL_SUBJECT) )
         setSubject( criteria.getString( EMAIL_SUBJECT)
);
        else 
         setSubject( "no subject available" );

        if( criteria.containsKey( SENDER_EMAIL ) &&
criteria.containsKey( SENDER_NAME))
            setFrom( criteria.getString( SENDER_EMAIL
),criteria.getString( SENDER_NAME ) );
       
    }

This sets a recipient, subject, and sender in addition to
the message body.


I would like to have some defaults set in case a criteria
isn't met. I would like to grab the defaults from
TurbineResources.properties, but I have not researched this
far enough to know where those can be accessed.

-Scott


> on 7/11/2000 1:39 AM, "Scott Johnson"
<[EMAIL PROTECTED]> wrote:
> 
> > Things seem to be working great except that any e-mail
sent
> > through the system by way of new account creation, or
> > e-mailing an existing user returns the error:
> > Error sending email: javax.mail.SendFailedException: No
> > recipient addresses.
> > 
> > The recipient e-mail address gets entered into the
> > database's EMAIL field, so I presume it is there. Could
a
> > parameter have been changed somewhere recently?  I tried
> > this with a straight JServ implementation too, but got
the
> > same results.
> 
> ahh..the Turbine api's (SimpleEmail) here recently
changed. that is 
> probably
> the problem.
> 
> -jon
> 
> 

Scott Johnson
Director of Business Development

Gravity Media Group
Art and Logic for Business Communication
www.gravitymedia.com

Tel: 801-426-5612





------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to