Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > Forum and Wrox.com Feedback
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 13th, 2006, 07:25 AM
Registered User
 
Join Date: Feb 2006
Location: Ibadan, Oyo, Nigeria.
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
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 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


  #3 (permalink)  
Old February 14th, 2006, 06:15 PM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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



Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 05: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 07:45 AM



All times are GMT -4. The time now is 04:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.