| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Asp Email In Cdosys
Hi there,
I have following code to send email. This throws no errors but the email isn't actually sent. Is this code missing something? function SendMail() set cdoMessage = Server.CreateObject("CDO.Message") set cdoConfig = Server.CreateObject("CDO.Configuration") cdoConfig.Fields("http://schemas.microsoft.com/cdo/co...ation/sendusing") = 2 cdoConfig.Fields("http://schemas.microsoft.com/cdo/co...tion/smtpserver") = "sendmail.brinkster.com" cdoConfig.Fields.Update set cdoMessage.Configuration = cdoConfig cdoMessage.From = "me@mydomain.com" cdoMessage.To = me@mydomain.com cdoMessage.Subject = "Feedback" cdoMessage.Body = message cdoMessage.Send set cdoMessage = Nothing set cdoConfig = Nothing exit function end function thanks your help Kleb |
|
#2
|
||||
|
||||
|
It's possible that you don't have your SMTP server setup correctly. Go to the c:\inetpub\mailroot folder on the webserver. See if your emails are stuck in one of the folders, like badmail folder.
You can run a test form your machine. Go to this page: http://www.petri.co.il/test_smtp_service.htm And look at the Telnet test. |
|
#3
|
||||
|
||||
|
And with some Web hosts the from part must be that of a valid e-mail address on that server.
__________________
J. Paul Schmidt www.Bullschmidt.com - Freelance Web and Database Developer www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Asp Email In Cdosys |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|