Im having trouble sending emails with VERP from an smtp-server that I have logged on to:
Smtp smtp = new Smtp();
smtp.ConnectSSL("myserver.com");
smtp.UseBestLogin("myuser@domain.se", "mypass");
IMail email = Limilabs.Mail.Fluent.Mail.Html(mailbody)
.Subject(subject)
.From("myuser@domain.se")
.To("recipient@another_domain.se")
.Create();
SmtpMail smtpMail = SmtpMail.CreateUsingVERP(email);
ISendMessageResult result = smtp.SendMessage(smtpMail);
But the result comes out as failed: "recipient address rejected Username 'recipient@another_domain.se' and sender ('total VERP adress') does not match."
If I omit
SmtpMail smtpMail = SmtpMail.CreateUsingVERP(email);
and use :
result = smtp.SendMessage(email);
everything works fine.
Could you please help me out? Am I missing something here? What am I doing wrong?
Thanks in advance