|
Subject:
|
Problem sending email with SMTP in VB.Net
|
|
Posted By:
|
Compiler
|
Post Date:
|
2/13/2006 6:25:17 AM
|
Please i need help urgently. I have written an email client to send email. i get no error messages and a mail sent information but all mails just gets queued up in the queue folder of the mailroot folder in my IIS folder(c:\inetpub\mailroot\queue\). I am using Visual Basic.Net with the system.web.mail class.
any help will be appreciated
|
|
Reply By:
|
jitendersingal
|
Reply Date:
|
2/13/2006 7:19:36 AM
|
Dim Mail As New MailMessage Dim Msmtp As SmtpMail Mail.Priority = MailPriority.Normal Mail.To = LblTo.Text Mail.From = LblFrom.Text Mail.Bcc = LblBcc.Text Mail.Subject = TxtSubject.Text.Trim.ToString Mail.BodyFormat = MailFormat.Html Mail.Body = TxtMsg.Text.Trim.ToString Mail.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "Your smtp server name" Mail.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 Mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 Mail.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 Mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "Username" Mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "Password" Msmtp.Send(Mail)
hope this will help u
|
|
Reply By:
|
Hal Levy
|
Reply Date:
|
2/14/2006 5:15:38 PM
|
Please post your message in the proper forum. I was going to move it for you, however there isn't enough information here to pick the right forum.
You will get more help if you use the correct forum.
Hal Levy Please do your own homework. I am here to help you, not do it for you. I do not have sample code for anything
|
|
Reply By:
|
tobe
|
Reply Date:
|
11/30/2007 6:25:06 PM
|
I wonder what does look like in C#.NET?
|