Thank you for that heads' Up. I was able to figure out a path and I was wondering if you can help me to get the following info from the CommonController.
In order to send an Email that contains the contactUs supplied info, I would like to configure the sender with the following:
1. The default Email Address that I initially setup for the Store
2. The default SMTP Settings that I provided during the configuration, such as my sendgrid Host, User and password, and other network settings.
For example, I would like to configure these properly:
using (var smtpClient = new SmtpClient())
smtpClient.Host = SendGrid.Host;
smtpClient.Port = SendGrid.Port;
smtpClient.EnableSsl = SendGrid.EnableSsl;
smtpClient.Credentials = new NetworkCredential(SendGrid.Username, SendGrid.Password);
I looked at the EmailSender.cs, IEmailSender.cs and found that this info was already getting paseed into these methods. Please let me know how to setup CommonController to get these variables.
Also, is it possible to add this modification to the Theme that I am creating or do I have to modify the original nop4.2 code ?
Thank you for your guidance.