tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arora, Avinash" <Avinash.Ar...@Level3.com>
Subject sending two different mails
Date Tue, 18 May 2004 21:51:14 GMT
Hi,
	Can we send two different mails using the <mt:mail> tag of
Mailer tag library, at a given time. If yes can any body please how to
achieve this.  Here is what I am trying to do-- (As u can see I am using
there are two <mt:mail>, but only first one is executed).
<body>
<mt:mail>
        <req:existsParameter name="server">
            <c:out value="Server Parameter exists."/>
          <mt:server><req:parameter name="server"/></mt:server>
        </req:existsParameter>
        <req:existsParameter name="to">
            <c:out value="To Parameter exists."/>
          <mt:setrecipient type="to"><req:parameter
name="to"/></mt:setrecipient>
        </req:existsParameter>
        <req:existsParameter name="from">
            <c:out value="From Parameter exists."/>
          <mt:from><req:parameter name="from"/></mt:from>
        </req:existsParameter>
        <req:existsParameter name="cc">
          <mt:setrecipient type="cc"><req:parameter
name="cc"/></mt:setrecipient>
        </req:existsParameter>
        <req:existsParameter name="subject">
          <c:out value="Subject Parameter exists."/>
            <mt:subject><req:parameter name="subject"/></mt:subject>
        </req:existsParameter>
  
        <req:existsParameter name="message">
            <c:out value="Message Parameter exists."/>
          <mt:message><req:parameter name="message"/></mt:message>
        </req:existsParameter>
        <req:existsParameter name="file">
            <c:out value="File Parameter exists."/>
           <mt:attach file=""><req:parameter name="file"/></mt:attach>
         </req:existsParameter>
         
	<mt:send>
	  <p>The following errors occured<br/><br/>
	  <mt:error id="err">
	    <jsp:getProperty name="err" property="error"/><br/>
	  </mt:error>
	  <br/>Please back up a page, fix the error and resubmit.</p>
	</mt:send>
     

     

</mt:mail>
<mt:mail>
        <req:existsParameter name="server">
            <c:out value="Server Parameter exists."/>
          <mt:server><req:parameter name="server"/></mt:server>
        </req:existsParameter>
        <req:existsParameter name="webLogicRecieverEmail">
            <c:out value="webLogicRecieverEmail Parameter exists."/>
          <mt:setrecipient type="to"><req:parameter
name="webLogicRecieverEmail"/></mt:setrecipient>
        </req:existsParameter>
        <req:existsParameter name="webLogicSenderEmail">
            <c:out value="webLogicSenderEmail Parameter exists."/>
          <mt:from><req:parameter name="webLogicSenderEmail"/></mt:from>
        </req:existsParameter>
        <req:existsParameter name="cc">
          <mt:setrecipient type="cc"><req:parameter
name="cc"/></mt:setrecipient>
        </req:existsParameter>
        <req:existsParameter name="subject">
          <c:out value="Subject Parameter exists."/>
            <mt:subject><req:parameter name="subject"/></mt:subject>
        </req:existsParameter>
  
        <req:existsParameter name="message">
            <c:out value="Message Parameter exists."/>
          <mt:message><req:parameter name="message"/></mt:message>
        </req:existsParameter>
        <req:existsParameter name="file">
            <c:out value="File Parameter exists."/>
           <mt:attach file=""><req:parameter name="file"/></mt:attach>
         </req:existsParameter>
         
	<mt:send>
	  <p>The following errors occured<br/><br/>
	  <mt:error id="err">
	    <jsp:getProperty name="err" property="error"/><br/>
	  </mt:error>
	  <br/>Please back up a page, fix the error and resubmit.</p>
	</mt:send>
     

     

</mt:mail>


</body>
</html>

Avinash Arora


-----Original Message-----
From: taglibs-user-digest-help@jakarta.apache.org
[mailto:taglibs-user-digest-help@jakarta.apache.org] 
Sent: Sunday, May 16, 2004 6:42 PM
To: taglibs-user@jakarta.apache.org
Subject: taglibs-user Digest 17 May 2004 01:42:13 -0000 Issue 642


taglibs-user Digest 17 May 2004 01:42:13 -0000 Issue 642

Topics (messages 8333 through 8333):

Re: passing JSTL to custom tag attribute
	8333 by: Martin van Dijken

Administrivia:

To subscribe to the digest, e-mail:
	taglibs-user-digest-subscribe@jakarta.apache.org

To unsubscribe from the digest, e-mail:
	taglibs-user-digest-unsubscribe@jakarta.apache.org

To post to the list, e-mail:
	taglibs-user@jakarta.apache.org


----------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message