Link to home
Start Free TrialLog in
Avatar of jmoniatte
jmoniatte

asked on

CFMail Message-Id

Using CFMAIL, ColdFusion generates a Message-Id in the form xxxx@machineName, where machineName is the local name of the CF machine sending the email.
It needs to be a Fully Qualified Domain Name (e.g. machineName.domainName.com).
How can it be changed from ColdFusion? (Using CFMAILPARAM Message-Id does not work)

Thanks,
Avatar of mmc98dl1
mmc98dl1
Flag of Australia image

This is what we use at work. Seems to do the trick - when you say doesnt work can you qualify that please?

<cfmailparam name="Message-Id" value="<#createUUID()#@yourdomain.com.au>">
Avatar of jmoniatte
jmoniatte

ASKER

Thanks for the reply. Yes, I can!

The Message-Id param inserted that way appears while the email is in the ColdFusion mail spool, but is overwritten by JavaMail as soon as the spool is emptied.

The new Message-Id value is in the form: xxxxx.javamail.System@MachineName. Where "System" is the account that runs the CF service and MachineName is the local name of the machine.

It is confirmed by many posters on various sites. Have CF send you an email and check the Message-Id header. It will be different from what you have above.

Thanks again.
ASKER CERTIFIED SOLUTION
Avatar of mmc98dl1
mmc98dl1
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of dgrafx
dgrafx
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial