Subject: How to inject "RCPT TO" using ComponentPro.Net.Mail
Date: 2021-07-23 19:04:43
From: Daraius
Source: inject-rcpt-to-using-componentpro-net-mail
----------------------------------------------------------------------

Hi

I have a number of EML files that I need to send to a vendor. I have been advised to make no changes to the EML ("To" field) to send the files but to inject the below:

> RCPT TO:<>

Below is the code I am using, which is not working (I did not expect to):


           using (Smtp smtpClient = new Smtp())
                {
                    smtpClient.CommandResponse  = SmtpClient_CommandResponse;
                    smtpClient.Connect(smtpArchiveDestination.Server);
                    smtpClient.Authenticate(smtpArchiveDestination.Username, smtpArchiveDestination.Password);
                    smtpClient.SendCommand($"RCPT TO:{smtpArchiveDestination.EmailAddress}");
                    smtpClient.Send(EML);
                    smtpClient.Disconnect();

                } 

What do I need to do to inject the "RCPT TO", please?

Thank you

DK

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index