Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: No sender specified for the mail message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Alex Shloma
Newbie
Newbie


Joined: 22 August 2014
Online Status: Offline
Posts: 22
Posted: 21 September 2017 at 3:07am | IP Logged Quote Alex Shloma

Hi,

I get the MailBeeInvalidArgumentException exception invoking RelayFromEmlFile method: : 'No sender specified for the mail message.'

Error happens when I specify null or empty string for senderEmail parameter.

My goal is to organize the following SMTP dialog:

...
MAIL FROM:<>
RCPT TO:<recipient@domain>
...


How can I achieve this?

Currently I use DMS.Net.Mail.dll 10.0.4.525.
Back to Top View Alex Shloma's Profile Search for other posts by Alex Shloma
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 21 September 2017 at 3:15am | IP Logged Quote Alex

Hi,

MailBee.NET does not allow sending from empty sender. There is no way around it.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex Shloma
Newbie
Newbie


Joined: 22 August 2014
Online Status: Offline
Posts: 22
Posted: 21 September 2017 at 4:34am | IP Logged Quote Alex Shloma

1. Can you please share some explanation as to why it was implemented this way?

I am asking, because Exchange Online in some cases sends empty string in "MAIL FROM: <>" command, when email is routed via connector to SMTP server. For example, when internal user sends email to the distribution list or office 365 group (think there are also other possible scenarios). After receiving and processing email, SMTP server must returns email back to Exchange Online using the same address in "MAIL FROM" command. But MailBee's SMTP component does not allow to achieve this.

2. Is it possible to add new method, that will accept empty string?
Back to Top View Alex Shloma's Profile Search for other posts by Alex Shloma
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 21 September 2017 at 6:05am | IP Logged Quote Alex

OK, your point is certainly convincing. I unblocked the ability to send from an empty address.

Now 'mailer.Send(null, null)' will send from what's specified in From: while 'mailer.Send("", null)' will send from an empty address.

The release candidate is: https://afterlogic.com/updates/mailbee_net.zip

Please note it uses license keys of v11 format. If you don't have one, please contact us via Helpdesk on your upgrade options.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex Shloma
Newbie
Newbie


Joined: 22 August 2014
Online Status: Offline
Posts: 22
Posted: 04 October 2017 at 12:22am | IP Logged Quote Alex Shloma

Thanks, will test it.
When is the official release with this feature scheduled?
Back to Top View Alex Shloma's Profile Search for other posts by Alex Shloma
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 04 October 2017 at 6:16am | IP Logged Quote Alex

There is no exact ETA (we release it on "when it's done" basis) but most likely - in a few weeks.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 06 October 2017 at 10:15am | IP Logged Quote Alex

Pre-release version on the Nuget:

https://www.nuget.org/packages/MailBee.NET/11.2.0-rc

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide