Imports System.Web.Mail
Public Sub Main()
Dim message As MailMessage = New System.Web.Mail.MailMessage()
Dim Att As String
Att = Dts.Variables("Attachments").Value.ToString
Att = Att & Now.Day.ToString & Now.Month.ToString & Now.Year.ToString & ".xls"
'MsgBox(Att.ToString)
message.From = "
message.To = "
message.Subject = "Abandoned Emails " & Now.Day.ToString & Now.Month.ToString & Now.Year.ToString
Dim oattach As MailAttachment = New MailAttachment(Att)
message.Attachments.Add(oattach)
SmtpMail.SmtpServer = "
SmtpMail.Send(message)
Dts.TaskResult = Dts.Results.Success
End Sub
End Class
No comments:
Post a Comment