Send Mail to [FAX:123456789]

0 votes
asked May 18, 2016 by tobi (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
answered May 18, 2016 by Lukas Pokorny (99,010 points)
edited Jul 1, 2016 by Lukas Pokorny
 
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(...)).

commented May 19, 2016 by tobi (150 points)
edited May 19, 2016 by tobi
Yes that works as expected. Thank you! Is it possible to get a non-trial Build of this Hotfix?
commented May 19, 2016 by Lukas Pokorny (99,010 points)
Yes, it is. Please contact us at support@rebex.net to get one.
...