|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
The below is a code to send mail thru CDONTS.newmail object
But it doesn't work. I"m getting no errors, but the mail isn't sent either . Please help. Thanks in advance <html> <head> <title>Mailin</title> </head> <body> <% Option Explicit Dim objNewMail Set objNewMail = Server.CreateObject("CDONTS.NewMail") objNewMail.From = "fadcrashnil@yahoo.com" objNewMail.To = "calculus_kuan@rediff.com" objNewMail.Subject = "This is a test Mail" objNewMail.Body = "This is the Body text of this test mail." objNewMail.Send Set objNewMail = Nothing Response.Write "Email has been sent" %> </body> </html> |
|
#2
|
|||
|
|||
|
Has the smtp server been setup correctly?
|
|
#3
|
|||
|
|||
|
if you're running this script on a remote site, then yes, it probably won't work (unless you own yahoo.com)
the address needs to be valid for the domain it is sat on. typically, URL jason |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > why isn't my cdonts.newmail working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|