Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in Authenticating SMTP Email Server (username and Password) ?

Status
Not open for further replies.

apexbs

Technical User
Jun 2, 2002
42
CA
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.
 
You will need to buy an SMTP control that supports authentication. Look for .Username and .Password support.

Enter smtp control authentication in your favorite search engine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top