| | |
problem in sending mail form web application
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2004
Posts: 19
Reputation:
Solved Threads: 0
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.
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.
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?
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?
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.
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.
If in doubt, reach into the trash can and remove the user guide.
![]() |
Similar Threads
- Multi-language Web Application (ASP.NET)
- General solution to handle web application errors? (IT Professionals' Lounge)
- Sending E-mail Within PHP (PHP)
- Obtain Remote Assistance by Sending an E-mail Message in Windows XP (Windows tips 'n' tweaks)
- Obtain Remote Assistance by Sending an E-mail Message in Windows XP (Windows tips 'n' tweaks)
Other Threads in the ASP.NET Forum
- Previous Thread: Long ado net question but urgent help required
- Next Thread: Free ASP.NET Application with code to practice
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# c#gridviewcolumn cac checkbox click commonfunctions compatible confirmationcodegeneration content courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dialog dropdownlist dynamically edit fileuploader fill flash formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery listbox microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





