postmark-dotnet icon indicating copy to clipboard operation
postmark-dotnet copied to clipboard

Error parsing 'To': Illegal email mailbox 'name-lastname' in address '[email protected]'

Open erzki opened this issue 8 years ago • 3 comments

We get this error when sending e-mail to valid e-mail adress. [email protected] Do you know if this is a postmark-dotnet issue or Postmark issue?

PostmarkDotNet.Exceptions.PostmarkValidationException: Error parsing 'To': Illegal email mailbox 'sanna-​lindgren' in address 'sanna-​[email protected]'.
   at PostmarkDotNet.PostmarkClientBase.<ProcessRequestAsync>d__12`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PostmarkDotNet.PostmarkClient.<SendMessageAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Bokio.Export.Mailing.MailHelper.<SendWithPostmark>d__2.MoveNext() in d:\a\1\s\Bokio.Export\Bokio.Export\Bokio.Export\Mailing\MailHelper.cs:line 30
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Bokio.Export.Controllers.MailController.<SendInvoice>d__16.MoveNext() in d:\a\1\s\Bokio.Export\Bokio.Export\Bokio.Export\Controllers\MailController.cs:line 277
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()

erzki avatar Feb 06 '18 08:02 erzki

@erzki, which version of the postmark client are you using?

atheken avatar Apr 25 '18 20:04 atheken

I've just encountered a similar issue sending emails to (example) [email protected]

Jameskmonger avatar May 09 '18 10:05 Jameskmonger

The problem here was that there was a ZERO_WIDTH_SPACE character just before the @.

Jameskmonger avatar May 09 '18 10:05 Jameskmonger