Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-07-2006, 12:54 PM   #1 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
Deploy a vb.net app on W2k Server,wont email now

guys, ive spent the last three weeks developing a vb.net service that will email people (table Driven) based on some results.
Now i deploy the service and all of its classes on a Server Running Windows 2000 Server (SP4) i believe and it wont email a soul.
i have several ways of emailing Using the System.Web.Mail One using VBScript creating a CDO object and One using a Socket Mail Class that uses the NetworkStream and TcpClient and specifically targets the Email server by node with port 25.
of course, i developed this on a machine running WinXP Pro. but now that im deploying it on Win2K Server, its basically not doing a thing.
the service is running fine and so is everything else.
but, since the whole end purpose of the program is to send emails - this is a HUGE problem and my Time is running out fast.

if anyone can help me out it would be greatly appreciated. i've pretty much run the gammit of researching the .NET for ideas - so i need some real help, code etc from the experts.
thanks again
In Panic
rik
rikb53 is offline   Reply With Quote
Old 02-07-2006, 01:59 PM   #2 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
i believe i figured this out using CDO.
and Referring to the SmtpServer by node, not name.
of course that still doesnt explain why Sockets or vbScript didnt work, but at least i can use this.
anyother enlightenment is appreciated.
thanks
rik
Dim oMail As System.Web.Mail.SmtpMail
'oMail.SmtpServer = "mail.Exsvr.com"
oMail.SmtpServer = "10.143.22.32"
Dim msg As New System.Web.Mail.MailMessage
msg.BodyFormat = MailFormat.Html
msg.To = "rrb7@yahoo.com"
msg.From = "rrb7@yahoo.com"
msg.Body = "<table><tr><td>hello</td></tr></table>"
oMail.Send(msg)
rikb53 is offline   Reply With Quote
Reply

Bookmarks

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 On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 04:41 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting