Wrox Programmer Forums
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 13th, 2006, 07:25 AM
Registered User
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Compiler
Default Problem sending email with SMTP in VB.Net

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

  #2 (permalink)  
Old February 13th, 2006, 08:19 AM
Authorized User
Join Date: Feb 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts

 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"

hope this will help u

  #3 (permalink)  
Old February 14th, 2006, 06:15 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts

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
  #4 (permalink)  
Old November 30th, 2007, 07:25 PM
Registered User
Join Date: Nov 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I wonder what does look like in C#.NET?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending email in VB.net lowell .NET Framework 2.0 3 November 30th, 2008 11:51 AM
sending email with SMTP authentication (port 26) crmpicco PHP How-To 3 November 4th, 2007 01:18 PM
Sending email problem - SMTP server response: 554 Havokx Beginning PHP 0 July 27th, 2007 04:04 AM
Sending EMail thru SMTP server in C# - Most of the peri C# 1 December 20th, 2004 09:33 PM
mail() is not sending email on localhost SMTP anshul PHP How-To 5 August 4th, 2004 06:45 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.