I want to use CFMAIL to send email messages which include the full name of the sender and receiver, so that for example in Outlook the senrder's name will appear in the in-tray rather than the sender's email address. According to a few things I've read on the web, the correct format for this is
John Smith<jsmith@mysite.com>
So I coded
<cfset FullEmailAddr = Name & "<" & EmailAddr & ">">
but Cf couldn't send it. The log entries in ColdFusion\Server\Mail\Log\Errors.Log said
501 Syntax error in address John Smith<jsmith@mysite.com
(note that these omitted the final >)
but then said
Sender = John Smith<jsmith@mysite.com>
(with the final >).
So what am I doing wrong?
PS I have no trouble using CFMAIL to send emails with addresses of the form
jsmith@mysite.com
and using the same email addresses as I did in the unsuccessful attempts, so I doubt if it's a set-up problem.
John Smith<jsmith@mysite.com>
So I coded
<cfset FullEmailAddr = Name & "<" & EmailAddr & ">">
but Cf couldn't send it. The log entries in ColdFusion\Server\Mail\Log\Errors.Log said
501 Syntax error in address John Smith<jsmith@mysite.com
(note that these omitted the final >)
but then said
Sender = John Smith<jsmith@mysite.com>
(with the final >).
So what am I doing wrong?
PS I have no trouble using CFMAIL to send emails with addresses of the form
jsmith@mysite.com
and using the same email addresses as I did in the unsuccessful attempts, so I doubt if it's a set-up problem.