473,748 Members | 6,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

smtpMail Class

I am trying to use an aspx page to send email using the smtpMail class and
my smtp server . When I click send but when I check my inbox no messages
appear. The page doesn't give any errors. I doble checked and my code behing
seems find:

Dim objmail As New Web.Mail.MailMe ssage()

objmail.From = "re****@myserve r.com"

objmail.To = "re****@myserve r.com"

objmail.Subject = "message from me"

objmail.Body = "body text"

objmail.BodyFor mat = Web.Mail.MailFo rmat.Html

Web.Mail.SmtpMa il.SmtpServer = "localhost"

Web.Mail.SmtpMa il.Send(objmail )

Can some body please tell me what additional steps I might need to take?
Nov 17 '05 #1
3 2699
Look in your mailroot (eg. c:\inetpub\mail root\) directory, and the various
subdirectories, for any messages. If messages are in the Badmail folder, you
can open them for more descriptive information. Depending on where you are
(internal network vs. internet), your needs will differ. Are you on a
corporate network, or at home connected through an ISP?

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com
"Renato Giron" <re*********@ea rthlink.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
I am trying to use an aspx page to send email using the smtpMail class and
my smtp server . When I click send but when I check my inbox no messages
appear. The page doesn't give any errors. I doble checked and my code behing seems find:

Dim objmail As New Web.Mail.MailMe ssage()

objmail.From = "re****@myserve r.com"

objmail.To = "re****@myserve r.com"

objmail.Subject = "message from me"

objmail.Body = "body text"

objmail.BodyFor mat = Web.Mail.MailFo rmat.Html

Web.Mail.SmtpMa il.SmtpServer = "localhost"

Web.Mail.SmtpMa il.Send(objmail )

Can some body please tell me what additional steps I might need to take?

Nov 17 '05 #2
at home connected to an ISP usind DSL
thanks for your feedback
"James J. Foster" <ja***@dotnetco ders.com> wrote in message
news:uf******** ******@TK2MSFTN GP10.phx.gbl...
Look in your mailroot (eg. c:\inetpub\mail root\) directory, and the various subdirectories, for any messages. If messages are in the Badmail folder, you can open them for more descriptive information. Depending on where you are
(internal network vs. internet), your needs will differ. Are you on a
corporate network, or at home connected through an ISP?

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com
"Renato Giron" <re*********@ea rthlink.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
I am trying to use an aspx page to send email using the smtpMail class and my smtp server . When I click send but when I check my inbox no messages
appear. The page doesn't give any errors. I doble checked and my code

behing
seems find:

Dim objmail As New Web.Mail.MailMe ssage()

objmail.From = "re****@myserve r.com"

objmail.To = "re****@myserve r.com"

objmail.Subject = "message from me"

objmail.Body = "body text"

objmail.BodyFor mat = Web.Mail.MailFo rmat.Html

Web.Mail.SmtpMa il.SmtpServer = "localhost"

Web.Mail.SmtpMa il.Send(objmail )

Can some body please tell me what additional steps I might need to take?


Nov 17 '05 #3
My messages are in the Queue folder, Don't know why.

"James J. Foster" <ja***@dotnetco ders.com> wrote in message
news:uf******** ******@TK2MSFTN GP10.phx.gbl...
Look in your mailroot (eg. c:\inetpub\mail root\) directory, and the various subdirectories, for any messages. If messages are in the Badmail folder, you can open them for more descriptive information. Depending on where you are
(internal network vs. internet), your needs will differ. Are you on a
corporate network, or at home connected through an ISP?

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com
"Renato Giron" <re*********@ea rthlink.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
I am trying to use an aspx page to send email using the smtpMail class and my smtp server . When I click send but when I check my inbox no messages
appear. The page doesn't give any errors. I doble checked and my code

behing
seems find:

Dim objmail As New Web.Mail.MailMe ssage()

objmail.From = "re****@myserve r.com"

objmail.To = "re****@myserve r.com"

objmail.Subject = "message from me"

objmail.Body = "body text"

objmail.BodyFor mat = Web.Mail.MailFo rmat.Html

Web.Mail.SmtpMa il.SmtpServer = "localhost"

Web.Mail.SmtpMa il.Send(objmail )

Can some body please tell me what additional steps I might need to take?


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3812
by: Jason | last post by:
Hi just a really quick simple question. Can you configure SmtpMail class in C# to use a different port? or does it have to be port 25? Thanks Jason
2
2548
by: Leszek | last post by:
Hello, I have created a simple code to send emails using the MailMessage class and the SmtpMail.Send() method: MailMessage mail = new MailMessage(); mail.From = echidna@somewhere.com; // hard-coded mail.To = platypus@somewhere.com; mail.Subject = "Test"; mail.Body = strMessage;
5
2151
by: ElanKathir | last post by:
Hi ! I wrote one code for Send the E-mail, But that code have some problem , So please help me Here i paste my code and Error: Error: Server Error in '/Elan_Sample' Application. --------------------------------------------------------------------------------
2
1800
by: Edward | last post by:
Hello, everybody, I tried to send Email out using ASP.NET, but failed, here is the code of sending: -------------------------------------------------------------------------------- Try Try 'SmtpMail.SmtpServer = "smtp.citiz.net"
3
3499
by: chuckdfoster | last post by:
When using this bit of code, it sends two emails most of the time. Sometimes it doesn't send two, but most of the time it does. I put the system time (Now) in the Subject and each email has a different time by a minute or so. I also tried to count the number of emails it is sending by using the intEmail = intEmail + 1, but the number is always 1.Could anyone tell me why this is happening or give me advice on how to change it. Thanks...
3
1562
by: aslantifosi | last post by:
hi all, My question is about that i use a smpt server which is running on a different machine from my webserver machine. And i can authenticate with a user and password. I use SmtpMail class. i set the smtpserver property. but how can i authenticate with my user and pass? for ex: my user :xxxx@xxx.com pass :12345
19
3367
by: zdrakec | last post by:
Hello all: Using an "Imports System.Web.Mail" clause at the head of my module, and after executing the following code: Dim msg As New MailMessage msg.From = sender msg.To = recipient msg.Attachments.Add(New MailAttachment(attachFile)) msg.Subject = subjectString
3
1832
by: Nathan Sokalski | last post by:
I have an ASP.NET page that sends a Mail.MailMessage to several email addresses (all mine). However, one of the addresses, the one ending in @verizon.net, does not seem to be recieving the message even though the other addresses are. I know the spelling is correct because I have tried sending messages from my other accounts to this address and have recieved them successfully. I also do not know of any junkmail filter that would delete the...
5
1882
by: senol | last post by:
UPLOAD bu class public static void ResimYükle(HtmlInputFile HtmlInput, string id,string Klasor,string KatID) { string path_file;
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.