Skip to main content
Inspiring
Dec 6, 2018 10:02 PM UTC
Answered

javax.mail.internet.AddressException: Empty address in string ``''

Hello all,

CF 2018 Standard on Windows 2016.

Running the following code:

<cfmail to="epipko@unionbay.com" from="mail@cf_server.com" subject="Example email">

  Your Email Message!!!

</cfmail>

Getting the following error in mail log:

javax.mail.internet.AddressException: Empty address in string ``''

If you dealt with this error before, please point me to the right direction to resolve it.

Thanks,

Eugene

This topic is closed to new replies. Start a new post to keep the conversation going.
BKBK
BKBKCorrect answer
Community Expert
Dec 12, 2018 5:42 PM UTC

Still, you gave no answer to my question. To take it further run the following in ColdFusion 2018:

<cfscript>

    writeoutput('isValid("email","mail@cf_server.com"): ' & isValid("email","mail@cf_server.com"));

    writeoutput('<br>');

    writeoutput('isValid("email","mail@cfserver.com"): ' & isValid("email","mail@cfserver.com"));

</cfscript>

The result speaks for itself.

13 replies

BKBK
Community Expert
Community Expert
Dec 12, 2018 4:48 PM UTC

Hi Eugene,

Could it be a bug whereby ColdFusion 2018 stumbles on the underscore character? What happens when you use from="mail@cfserver.com"​ ?

Translate
Inspiring
Dec 12, 2018 4:54 PM UTC

It works if I specify a valid email address, for instance:

<cfmail to="epipko@unionbay.com" from="epipko@unionbay.com" subject="Example email" server="smtp.seattlepacificindustries.com" port="25"> 

  Your Email Message!!! 

</cfmail>

Translate
BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
Dec 12, 2018 5:42 PM UTC

Still, you gave no answer to my question. To take it further run the following in ColdFusion 2018:

<cfscript>

    writeoutput('isValid("email","mail@cf_server.com"): ' & isValid("email","mail@cf_server.com"));

    writeoutput('<br>');

    writeoutput('isValid("email","mail@cfserver.com"): ' & isValid("email","mail@cfserver.com"));

</cfscript>

The result speaks for itself.

Translate
WolfShade
Legend
Dec 6, 2018 10:23 PM UTC

Check the mail log in CFAdmin.  If there's an issue, it _should_ be present.

HTH,

^ _ ^

Translate
Inspiring
Dec 6, 2018 10:30 PM UTC

The error I provided IS from mail log

Translate
WolfShade
Legend
Dec 6, 2018 10:41 PM UTC

Are the emails in your sample code the actual emails that you are using?

Are you using variables to supply the from or to addresses?  Or are they hard-coded?  If variables, CFOUTPUT them to the screen and use CFABORT after that just to check.

I cannot think of any situation where CF would strip out the from or to addresses in a CFMAIL tag.

HTH,

^ _ ^

Translate