A my short C# script to send e-mail with attachment & template (published on MDSN TechNet - Script Center)
http://gallery.technet.microsoft.com/scriptcenter/0c32d24a-3651-4fe1-8d10-80f9c6440a70
Usage/Utilizzo
>> compile a DLL .NET usable on Windos Systems>> compila una DDL .NET e richiamala da Windows
- main functions
- setMail(string parfrom, string parto, string parcc, string parsubject, string partextmessage, string parpathattach, string parpathtemplate)
- sendMail()
Full Script is here:
http://gallery.technet.microsoft.com/scriptcenter/0c32d24a-3651-4fe1-8d10-80f9c6440a70
Parameters
setMail(string parfrom, string parto, string parcc, string parsubject, string partextmessage, string parpathattach, stringparpathtemplate)
parfrom = MailFrom, parto = MailTo, parcc = Subject, partextmessage = TestMessage, parpathattach = Attachment Path, parpathtemplate = Mail Template Path
SendMail() > invia la mail