I found two things that work to redeliver email.

First I tested by basically using the cfmail tag to generate a new email. 
This was successful, but the two main drawbacks that I had were 1) We are 
creating a whole new email and as such completely loosing the 
header/envelop data of the original email. 2) Using the nifty 
'getBodyFromParts' function in the manual pages, this process is creating 
only a plain text email... loosing any other multi-part formatting the 
original user may have sent. However, it IS functional.

Here's the code:

<cfmail from="#arguments.mail.getMailFrom()#" to=
"#arguments.mail.getRecipients()[1]#" subject=
"#arguments.mail.getSubject()#">#getBodyFromParts(arguments.mail.getBodyParts(),
 
"text/plain")#</cfmail>

As you can see I'm just recreating the email with the to, from and subject 
and parsing out the plain text body. Felt crude and clunky and again, the 
has the drawbacks I mentioned above.

While looking through the log file I then noticed that when I used the 
cfmail tag - the log file had a "Server=;;111.222.333.444;25;" entry (IP 
address changed). So that got me thinking that perhaps the mailDeliver() 
actually needed the server information.

So I tested the following:

<cfset temp = mailDeliver(mail=arguments.mail, server="111.222.333.444:25") 
/>

And that worked! So I am now of the opinion that we should have someone 
either update the underling code so that the 'sever' attribute is truly 
optional OR change the manual to indicate that the 'server' attribute is 
*not optional.

Either way - all the component pieces of what I need to do are testing 
properly now and working as expected. I should be able to put them all 
together into a successful app. Hopefully this will help someone in the 
future.

Thanks,
Alan

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to