problem in sending mail

  • Thread starter Thread starter ds
  • Start date Start date
D

ds

Hello
Iam sending mail from web page like, enquiry form mail using asp and
asp.net.while send the mail i don't have any error.
but the mail does't reach the destination.can some one give me a
solution for this problem.

ds
 
ds,

Please don't send multiple posts of the same message. Now, you don't say
what code your'e using to send message. That would be a start ;-)
 
ct,
i posted only one message.there is no error.the message some time ,but
most of the time the message is not reached to destination.

ds
 
ct

code



Dim objMessage As New MailMessage
objMessage.From = fromid
objMessage.To = "(e-mail address removed)"
objMessage.Subject = "Subject"
objMessage.Body = "MailBody"
objMessage.BodyFormat = MailFormat.Html
'Optionally set to external SMTP Server
SmtpMail.SmtpServer = ""
SmtpMail.Send(objMessage)


i haven't given the smtp server,since i want to send from one server to
another.this code works some times.

ds
 
Hmm, code looks okay. Have you checked if the messages are left in the
:\Inetpub\mailroot\Drop folder?
 
Okay, and you checked the folder on the machine on which the SMTP server you
use is installed, right? If so, can you please check the other folders in
the :\Inetpub\mailroot as well?
 
Hmm... You obviously checked the folder on the machine on which the SMTP
service you're using is installed, right? Do you have any other SMTP server
in your organization, you can try and send to?
 
Hmm, as far as I can tell, your code is fine, i.e. it works here, so given
the fact that you don't get an error when running the code, I'm convinced
that the problem is elsewhere. That's why I wanted you to check the folders,
which could indicate that a potential DNS or other network issues. However,
seeing as the messages are not in those folders, I'm somewhat unsure of what
to try next. What type of SMTP server are you submitting the messages to?
Have you tried the built-in SMTP server in Windows XP?
 
Back
Top