473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

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.MailMessage()

objmail.From = "re****@myserver.com"

objmail.To = "re****@myserver.com"

objmail.Subject = "message from me"

objmail.Body = "body text"

objmail.BodyFormat = Web.Mail.MailFormat.Html

Web.Mail.SmtpMail.SmtpServer = "localhost"

Web.Mail.SmtpMail.Send(objmail)

Can some body please tell me what additional steps I might need to take?
Nov 17 '05 #1
3 2686
Look in your mailroot (eg. c:\inetpub\mailroot\) 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*********@earthlink.net> wrote in message
news:%2****************@tk2msftngp13.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.MailMessage()

objmail.From = "re****@myserver.com"

objmail.To = "re****@myserver.com"

objmail.Subject = "message from me"

objmail.Body = "body text"

objmail.BodyFormat = Web.Mail.MailFormat.Html

Web.Mail.SmtpMail.SmtpServer = "localhost"

Web.Mail.SmtpMail.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***@dotnetcoders.com> wrote in message
news:uf**************@TK2MSFTNGP10.phx.gbl...
Look in your mailroot (eg. c:\inetpub\mailroot\) 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*********@earthlink.net> wrote in message
news:%2****************@tk2msftngp13.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.MailMessage()

objmail.From = "re****@myserver.com"

objmail.To = "re****@myserver.com"

objmail.Subject = "message from me"

objmail.Body = "body text"

objmail.BodyFormat = Web.Mail.MailFormat.Html

Web.Mail.SmtpMail.SmtpServer = "localhost"

Web.Mail.SmtpMail.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***@dotnetcoders.com> wrote in message
news:uf**************@TK2MSFTNGP10.phx.gbl...
Look in your mailroot (eg. c:\inetpub\mailroot\) 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*********@earthlink.net> wrote in message
news:%2****************@tk2msftngp13.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.MailMessage()

objmail.From = "re****@myserver.com"

objmail.To = "re****@myserver.com"

objmail.Subject = "message from me"

objmail.Body = "body text"

objmail.BodyFormat = Web.Mail.MailFormat.Html

Web.Mail.SmtpMail.SmtpServer = "localhost"

Web.Mail.SmtpMail.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
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
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; //...
5
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
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...
3
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...
3
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...
19
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...
3
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...
5
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.