| | |
Sending mails......
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2007
Posts: 28
Reputation:
Solved Threads: 0
Hello!
I had problem sending mails through asp.net, even after writing the code.
But after providing the IP address of my pc in the relay option in IIS, the problem finally got solved.
But now the problem is that the same code when I tried to run on a pc which was a local server, I still face the problem.
I write the follwing code
dim mm as new mailmessage
mm.to="rasvinder.soodan@gmail.com"
mm.from="rasvinder.soodan@gmail.com"
mm.subject="hello"
mm.body="hello"
mm.priority=priority.high
smtpmail.smtpserver="theip addrss of the local machine"
smtpmail.send(mm)
The above code runs succesfully on one pc, which is a normal client pc, but when run on a server machine, mail are not sent.
Can u plz help me out?
Thanks
I had problem sending mails through asp.net, even after writing the code.
But after providing the IP address of my pc in the relay option in IIS, the problem finally got solved.
But now the problem is that the same code when I tried to run on a pc which was a local server, I still face the problem.
I write the follwing code
dim mm as new mailmessage
mm.to="rasvinder.soodan@gmail.com"
mm.from="rasvinder.soodan@gmail.com"
mm.subject="hello"
mm.body="hello"
mm.priority=priority.high
smtpmail.smtpserver="theip addrss of the local machine"
smtpmail.send(mm)
The above code runs succesfully on one pc, which is a normal client pc, but when run on a server machine, mail are not sent.
Can u plz help me out?
Thanks
Hello to you
I'll just give you a sumary of what I did in a very similar scenario.
Then on the server uncheck the 'allow all computers which successfully authenticate to relay regardless of the list above'
This should work. It worked for me. If any problems please get back to me.
I'll just give you a sumary of what I did in a very similar scenario.
ASP.NET Syntax (Toggle Plain Text)
Dim oMsg As New CDO.Message Dim iConfig As CDO.IConfiguration Dim oFields As ADODB.Fields Dim oField As ADODB.Field Dim strEmailAddress As String = "jobstar@yahoo.co.uk" Dim strSubject As String = "Request for missions" Dim msgMail As String = "Pls Find below the details. Thank You." iConfig = oMsg.Configuration oFields = iConfig.Fields ' Set configuration. 'using the local smtp server oField = oFields("http://schemas.microsoft.com/cdo/configuration/sendusing") oField.Value = 1 oFields.Update() Try 'message() oMsg.TextBody = msgMail oMsg.Subject = strSubject oMsg.From = "terrastar@comstar.net" oMsg.To = strEmailAddress oMsg.Send() Catch x As Exception Finally End Try
This should work. It worked for me. If any problems please get back to me.
•
•
•
•
Hello!
I had problem sending mails through asp.net, even after writing the code.
But after providing the IP address of my pc in the relay option in IIS, the problem finally got solved.
But now the problem is that the same code when I tried to run on a pc which was a local server, I still face the problem.
I write the follwing code
dim mm as new mailmessage
mm.to="rasvinder.soodan@gmail.com"
mm.from="rasvinder.soodan@gmail.com"
mm.subject="hello"
mm.body="hello"
mm.priority=priority.high
smtpmail.smtpserver="theip addrss of the local machine"
smtpmail.send(mm)
The above code runs succesfully on one pc, which is a normal client pc, but when run on a server machine, mail are not sent.
Can u plz help me out?
Thanks
![]() |
Similar Threads
- sending e-mail with ASP (ASP)
- sending mails using Visual Basic 6 (Visual Basic 4 / 5 / 6)
- cannot delete or send e-mails when using yahoo mail (Viruses, Spyware and other Nasties)
- Google AdWords and Link Popularity (Pay-Per-Click Advertising)
- Ssl Outlook Problem (Windows NT / 2000 / XP)
- Sending mail without knowing - being used by remote robot? (Geeks' Lounge)
- creating mail applications (Visual Basic 4 / 5 / 6)
- Hotmail: Can read but cannot send e-mails (Web Browsers)
- help with virus infection... (Windows NT / 2000 / XP)
Other Threads in the ASP.NET Forum
- Previous Thread: Create Setup
- Next Thread: fares
| Thread Tools | Search this Thread |
.net 3.5 ajax alltypeofvideos appliances asp asp.net bc30451 beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iis javascript list listbox login microsoft mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





