469,610 Members | 1,771 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,610 developers. It's quick & easy.

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 2579
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Jason | last post: by
2 posts views Thread by Leszek | last post: by
5 posts views Thread by ElanKathir | last post: by
2 posts views Thread by Edward | last post: by
3 posts views Thread by chuckdfoster | last post: by
3 posts views Thread by aslantifosi | last post: by
3 posts views Thread by Nathan Sokalski | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.