0 votes
by (150 points)

Hi,
i want to send an Mail to a SMTP-Server that automatically sends Mails, where the Recipient is coded like [FAX:] as Fax to the specified Number.

I tried the following:

message.To.Add(new MailAddress("<[FAX:" + number + "]>", number);

But Rebex, always convert it to the following Header: "[FAX:123456]" <123456]>

I also tried to set the Header directly:

message.Headers["To"] = new MimeHeader("To", new Unparsed("\"" + number + "\" <[FAX:" + number + "]>"));

In that Case i got a "No recipients found in the message."-Exception

Thanks for your Help!

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (134k points)
edited by
 
Best answer

Update: We added support for this in Rebex Secure Mail 2016 R2.


Although this appears to be somewhat non-standard, we tried adding support for it - please try the experimental Rebex Secure Mail hotfix and let me know whether it works. (Use the code that does message.To.Add(...)).

by (150 points)
edited by
Yes that works as expected. Thank you! Is it possible to get a non-trial Build of this Hotfix?
by (134k points)
Yes, it is. Please contact us at support@rebex.net to get one.
...