Hi ;
I am using this code for sending emails and it is working fine at development envoirnment b/c we have that kind of IP setup where no authentication is required.
Dim myMessage As MailMessage
myMessage = New MailMessage
With myMessage
.To = sendTo
.From = "abc@abc.com"
.Subject = "New Report"
.Body = "New Report Available at .BodyFormat = MailFormat.Text
End With
SmtpMail.SmtpServer = "smtp.abc.com"
SmtpMail.Send(myMessage)
Note: I used abc for example.
At client site in production envoirnement the setup is different and there is athuentication is required for from email address. So, how can we send these parameters (Username and password for from email account) in SMTP object.
Thanks.
I am using this code for sending emails and it is working fine at development envoirnment b/c we have that kind of IP setup where no authentication is required.
Dim myMessage As MailMessage
myMessage = New MailMessage
With myMessage
.To = sendTo
.From = "abc@abc.com"
.Subject = "New Report"
.Body = "New Report Available at .BodyFormat = MailFormat.Text
End With
SmtpMail.SmtpServer = "smtp.abc.com"
SmtpMail.Send(myMessage)
Note: I used abc for example.
At client site in production envoirnement the setup is different and there is athuentication is required for from email address. So, how can we send these parameters (Username and password for from email account) in SMTP object.
Thanks.