Hi, 

Ran into a couple minor snags while implementing my new mail system that I wanted to 
share.  

1. I had some code in rcpt.cfm that looked like so:

result=relay
mx="<CFOUTPUT>#CheckDomain.RelayToMX#</CFOUTPUT>"

Well, the stuff between the # signs actually threw an error (due to my mistake), BUT 
it didn't crash the rcpt.cfm template!

Instead, I ended up with a control file that had part of the error message in the MX= 
line.  Looked something like this:

MX=/B><P><P>ColdFusion

I noticed the errors in the POST log when it was trying to resolve the MX name.  
Anyway, I fixed the error and put the CFOUTPUTS around the whole MX line, instead of 
inside the quotes.


2.  The individual list entries in form.RCPTList in DATA template don't seem to always 
match the individual form.SMTPName list members in the RCPT template.  Here's an 
example of what I mean.  I've only actually seen this problem when CFMAIL is used to 
send email, but it might crop up with other mailers.

The original TO line in CFMAIL was set to "[EMAIL PROTECTED], 
[EMAIL PROTECTED]".  Notice the space after the comma.  When this mail came 
in to RCPT template, the individual recipients were properly found in the DB when 
querying based on UserAlias=form.SMTPName.  However, when it got to DATA template, and 
started looping over the form.RCPTList, the list actually kept the original space 
after the comma. So, the user lookup failed in DATA template because it was trying to 
find " [EMAIL PROTECTED]" (with the leading space). Hope that's clear.

Not a big deal, but it did catch me by surprise and caused a lost email.  Not sure if 
this would be considered an iMS bug or not. I took care of it by stripping any 
whitespace from the RCPTlist in DATA before looping over it, like so:

<CFLOOP INDEX="Recipient" LIST="#REReplace(form.RCPTList, "[[:space:]]", "", "ALL")#">


Hope that helps prevent some errors for people.

Cheers,
-Max


========================================================================
     This list server is Powered by iMS
   'The Swiss Army Knife of Mail Servers'
   --------------------------------------
To leave this list please complete the form at 
http://www.CoolFusion.com/iMS.htm

List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================

Reply via email to