Skip to main content
Inspiring
December 6, 2018
Answered

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

  • December 6, 2018
  • 2 replies
  • 4407 views

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 has been closed for replies.
Correct answer BKBK

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.

2 replies

BKBK
Community Expert
December 12, 2018

Hi Eugene,

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

Inspiring
December 12, 2018

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>

BKBK
BKBKCorrect answer
Community Expert
December 12, 2018

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.

WolfShade
Brainiac
December 6, 2018

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

HTH,

^ _ ^

Inspiring
December 6, 2018

The error I provided IS from mail log

Inspiring
December 6, 2018

Client was not authenticated.  No relays.  Must be a valid, existing email address.

My guess is that something, somewhere, is stripping out mail@cf_server.com from the FROM attribute.  Or the email server doesn't like it.  But it should be a valid, existing sender email address.

V/r,

^ _ ^


I am running this in CF9 just fine

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

  Your Email Message!!!

</cfmail>