Is there a possibility to run the SendEmail Activity with Lotus mail server?
Hello,
Is there a possibility to run the SendEmail Activity with Lotus mail server? if it's how would I proceed?
Hello,
Is there a possibility to run the SendEmail Activity with Lotus mail server? if it's how would I proceed?
I assume that you're referring to the SendEmailActivity in WSS v3. If I remember correctly, it just uses whatever SMTP server you have configured in SharePoint (i.e., the same one that's used to send out alerts).
You may not be able to use your Lotus mail server directly, because SharePoint doesn't let you authenticate to the SMTP server; it needs an open SMTP server. You pretty much have two options:
No I think you're referring to the Sample SendMailActivity ; indeed, relay you local smtp service to your Lotus mail Server or provide its smtp adress in the activity host property; I've just tested it right now with my internet (but not lotus) smtp server, that works.
Actually this sample uses the System.Net.Mail.SmtpClient class; there are no credential properties on the activity sample, but we can add it : the SmtpClient class has a "Credentials" property.
Serge
yes very easy : one additional string property for the password (it can be encrypted if you want), and in SendEmailUsingSmtp() , add the following lines :
NetworkCredential myCredentials = new NetworkCredential(<your email>,<your password>);
client.Credentials = myCredentials;
// if necessary: client.EnableSsl=true;
client.Send(message);