September 6, 2010 at 3:05 am
Hi to All
Below Code Getting Error,plz clear it
Option Strict Off
Imports System
Imports System.Data
Imports System.Math
Imports System.Net.Mail
Imports Microsoft.SqlServer.Dts.Runtime
Public Class ScriptMain
Public Sub Main()
Dim varHTMLMail As MailMessage
Dim varSMTPClient As SmtpClient
Dim varMailBody As Object
Dim varAddresses As String
varMailBody = Dts.Variables("varSalesSummaryHTML").Value
varAddresses = Dts.Variables("varMailTo").Value.ToString
varHTMLMail = New MailMessage("noreply@domain.com", varAddresses, "Daily Order Summary", varMailBody)
varHTMLMail.IsBodyHtml = True
varSMTPClient = New SmtpClient("Your_SMTP_Server_Name")
varSMTPClient.UseDefaultCredentials = True
varSMTPClient.Send(varHTMLMail)
Dts.TaskResult = Dts.Results.Success
End Sub
End Class
Gmail SMTP SERVER NAME is what?
September 7, 2010 at 7:09 am
Dear Friend,
Please specify your problem....
if you question is only
Gmail SMTP SERVER NAME is what?
Answer is : smtp.gmail.com
Varinder Sandhu,
http://www.varindersandhu.in/
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply