0 votes

Hi!

We are trying to set the reply-to-address as an alias-address when sending with limilabs.

For instance when sending using the account bob@example.com we want the reply-to-address to be reply@example.com. Reply is an alias 'pointing to' bob@example.com.

How to do that with limilabs?

Regards/AJ

by

1 Answer

0 votes
 
Best answer

Use MailBuilder.ReplyTo property while creating new email:

MailBuilder builder = new MailBuilder();
builder.From.Add(new MailBox("alice@mail.com", "Alice"));

builder.ReplyTo.Add(new MailBox("reply@mail.com"));

builder.To.Add(new MailBox("bob@mail.com", "Bob"));
builder.Subject = "Test";
builder.Text = "This is plain text message.";   
IMail email = builder.Create();
by (301k points)
selected by
...