[jdom-interest] How to get src:key attribute

netizen netizen.mail at attbi.com
Thu Dec 19 13:08:30 PST 2002


Here you go.  And thanks

<?xml version="1.0" encoding="UTF-8"?>
<ServicesProperties type="smtp" name="generic" rulesOn="standard" run="once">

        <SystemProperties status="needstorun">
        <![CDATA[
                status: running, finished, needstorun
        ]]>
                <TimeStamps>
                        <Start/>
                        <Stop/>
                </TimeStamps>
        </SystemProperties>
        
        <Settings>
                <Interval>
                        <SleepInterval>
                                <Type/>
                                <Time/>
                        </SleepInterval>
                </Interval>
        <![CDATA[
                type: minute or hours
                time: the time per minute/hour
        ]]>     
        
    <SMTPSettings>
            <Smtp></Smtp>
        <User></User>
        <Password></Password>
        <Port>25</Port>
    </SMTPSettings>
        
        <DatabaseSettings type="sqlserver">
                <![CDATA[
                        For database type use: sqlserver for MS Sql Server, oracle for Oracle
                ]]>
                <ClassName>net.sourceforge.jtds.jdbc.Driver</ClassName>
                <Url>jdbc:jtds:sqlserver://localhost:1433/Daytona;TDS=8.0</Url>
                <Login>
                        <User>sa</User>
                    <Password></Password>
                </Login>
        </DatabaseSettings>
        
        </Settings>
        
        <EmailContents>
        <![CDATA[
                        You can map data to the subject.  Example:
                        
                <Text>Refinance your car and LOWER your monthly payments</Text>
                <MapTo type=""></MapTo>
                        
                where type is one of the following:
                        listGeneratorFieldMap
                cleanUpFieldMap
                htmlEmailBodyFieldMap
                textEmailBodyFieldMap                           
                        
        ]]>
        
                <EmailFrom>
                        <Defaults>netizen1 at attbi.com</Defaults>
                </EmailFrom>
                <EmailTo>
                        <Defaults>eadvincula at roadloans.com,aagena at roadloans.com,netizen1 at attbi.com</Defaults>
                </EmailTo>
                <EmailCc>
                        <Defaults />
                </EmailCc>
                <EmailBcc>
                        <Defaults />
                </EmailBcc>

                <EmailAtttachments>
                        <Defaults/>
                        <Mapping/>
                </EmailAtttachments>

                <EmailSubject>
                        <Subject>XMas Emails</Subject>
                        <Mapping>
                        </Mapping>
                </EmailSubject>
                
                <EmailBodyMessage emailType="html">
                        <Message>
                                <![CDATA[
                                        <html>
                                                <head>
                                                <title>Refinance</title>
                                        </head>
                                        <body>
                                        <img src="cid:?1" border="0"/>
                                            <br />
                                            <a>What do you think?</a>
                                    </body>
                                        </html>
                                ]]>
                        </Message>
                        <Mapping>
                                <MapToField id="1" type="htmlEmailBodyFieldMap">cidImage1</MapToField>
                        </Mapping>              
                </EmailBodyMessage>
                

        </EmailContents>

        <DatabaseQueries>
                <![CDATA[
                        type: sql or storedproc
                ]]>     
                <ListGeneratedQuery type="sql">
                        <Query>
                        <![CDATA[
                                        SELECT Send_Id, Recipients_tx, From_tx, CopyRecipients_tx,
                                        BlindCopyRecipients_tx, Subject_tx, Message_tx, Attachments_Path
                                        FROM d_EmailSend
                                ]]>
                        </Query>
                        
                </ListGeneratedQuery>
                
                <CleanUpQuery use="false" type="sql">
                        <Query>
                                DELETE FROM d_EmailSend WHERE Send_Id = ?
                        </Query>
                        <Mapping>
                                <MapToField id="1" type="listGeneratorFieldMap">sendId</MapToField>
                        </Mapping>                      
                </CleanUpQuery>
        </DatabaseQueries>

            
        <Mapping>
                <![CDATA[
                        types:  listGeneratorFieldMap
                                cleanUpFieldMap
                                htmlEmailBodyFieldMap
                                textEmailBodyFieldMap
                                dateStamp
                ]]>
                
                <ListGeneratorMapping>
                </ListGeneratorMapping>
                <CleanUpMapping>
                </CleanUpMapping>
                <HtmlEmailBodyMapping>
                <FieldMap name="cidImage1" type="image">
                                <cid>xmas1</cid>
                        <src>/tmp/timage.gif</src>
                    </FieldMap> 
                </HtmlEmailBodyMapping>
                <TextEmailBodyMapping/>
                
                <![CDATA[
                
                        <HtmlEmailBodyMapping>
                        <FieldMap name="cidImage1" type="image">
                                <cid>banner</cid>
                                <src>c:/temp/Refinance.gif</src>
                        </FieldMap>     
                        <FieldMap name="cidImage2" type="image">
                                <cid>optout</cid>
                                <src>c:/temp/OptOutButton.gif</src>
                                </FieldMap>                                     
                        </HtmlEmailBodyMapping>
                
                ]]>             
        </Mapping>

</ServicesProperties>


-- 
Best regards,
 netizen                            mailto:netizen.mail at attbi.com





More information about the jdom-interest mailing list