943,935 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 7972
  • ASP.NET RSS
Sep 23rd, 2005
0

problem in sending mail form web application

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Deepa is offline Offline
19 posts
since Nov 2004
Sep 26th, 2005
0

Re: problem in sending mail form web application

1.Make sure your SMTP server path is correct.
2.This may be absurd but check your Bulk folder.Often the mail you send goes to the Bulk folder.
3.Paste your code,if you still arent able to solve the issue.
Reputation Points: 11
Solved Threads: 6
Junior Poster
Letscode is offline Offline
175 posts
since Feb 2005
Sep 26th, 2005
0

Re: problem in sending mail form web application

code

Dim objMessage As New MailMessage
objMessage.From = "from@test.com"
objMessage.To = "test@test.com"
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.i want to send from one server to another.
please help me out.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Deepa is offline Offline
19 posts
since Nov 2004
Nov 9th, 2005
0

Re: problem in sending mail form web application

I tried the code and it doesn't work for me either.

I've tried 2 different external SMTP servers and both didn't send any mail.

IIS has a built in SMTP server it will use if you don't supply an SmtpServer String

I'm Positive that there aren't any Firewalls blocking SMTP on any of my routes.

The code I have from "Osborne's - The Complete Reference of ASP.NET" doesn't supply any information other than an example of using System.Web.Mail Methods

Is there anything that might prevent sending any mail?
Reputation Points: 12
Solved Threads: 6
Junior Poster
Geek-Master is offline Offline
156 posts
since Dec 2004
Nov 12th, 2005
0

Re: problem in sending mail form web application

I was able to fix my problem with getting ASP.NET to send emails.

I looked into my "badmail" folder located in "C:\Inetpub\mailroot\Badmail" and found this error

Unable to deliver this message because the follow error was encountered: "Error is processing file in pickup directory.".

The specific error code was 0xC00402CE.


I found help at Microsoft's website at http://support.microsoft.com/default...b;en-us;319285

Which talked about the .FROM property was bad and you might need to make sure that the From email address is a valid email address.

The other problem is that I wasn't Granted to Relay messages.

Which you need to start IIS >> Right Click your SMTP Virtual Server >> Select Properties >> Select the Access Tab >> Click the Relay... button >> Uncheck "Allow all computers which successfully..." checkbox >> Then Add 127.0.0.1 "local IP address" to the list above the checkbox.

I hope that any of this can help future situations.
Reputation Points: 12
Solved Threads: 6
Junior Poster
Geek-Master is offline Offline
156 posts
since Dec 2004
Jan 10th, 2010
-1
Re: problem in sending mail form web application
Hi all,
I found this above post to be specific for my issue. how can i be sure whether my SMTP virtual server is configured properly ? If its not, then how to do it.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sundar9987 is offline Offline
1 posts
since Jan 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: ASP.NET with database on browser
Next Thread in ASP.NET Forum Timeline: Inserting Record using ASP.net c# and Access Database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC