The goal is to create a PDF using Report Builder (I have been successful) and 
then e-mail it to the user using CFMAIL.  Now here it the weird part.  When I 
test it from the server, it works fine the first time.  Then, I run through the 
exact same process and when I try to send it again, it fails.  I can see that 
the PDF is still created, the mail is still sent to the server's spool folder, 
but it hangs and is never sent.  I have to end up deleting the mail from the 
spool folder on the server and restarting the Coldfusion MX7 Application Server 
from "my computer / manage / services" in order to clear it and have it work 
again.  I test it again, works the first time, and hangs after any additional 
e-mails are tried to be sent.

Here is the code I am using:

<cfmail to="#URL.eMail#" from="[EMAIL PROTECTED]" subject="SONOGRAPHYCME 
CERTIFICATE" type="html">
        <cfmailparam file="images/emailHeader.jpg" disposition="inline" 
contentID="image1">
                <cfmailpart type="image/jpeg">
                        <img src="cid:image1" /><br />
                </cfmailpart>
                <cfmailpart type="html">                        
                        From:  [EMAIL PROTECTED]<br />
                        Sent:  #DateFormat(Now(), "mm/dd/yyyy")# 
#TimeFormat(Now(), "h:mm:tt")#<br /><br />             
                        Comments:  Congratulations on successful completion!!!
                </cfmailpart>
                <cfmailpart type="application/pdf">
                        <!--- <cfmailparam disposition="attachment" 
file="pdf/test.pdf" type="application/pdf" > --->
                        <cfmailparam disposition="attachment" 
file="pdf/#namePDF#" type="image/jpeg">
                </cfmailpart>   
</cfmail> --->

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2045
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to