| | |
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 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox click commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose feedback flash flv form formatdecimal forms formview gridview homeedition iframe iis javascript jquery list listbox login menu microsoft mono mouse mssql multistepregistration nameisnotdeclared news numerical objects order panelmasterpagebuttoncontrols problem radio ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webarchitecture webdevelopemnt webservice wizard xml youareanotmemberofthedebuggerusers





