I am trying to send an email from ASP Application. This is the code -

Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\inetpub\mailroot\pickup\kp1.txt")
f.Write "From:" & "[EMAIL PROTECTED]"  & vbCRLF
f.Write "To:" & "[EMAIL PROTECTED]" & vbCRLF
f.Write "Subject: Testing" & vbCRLF
f.Write "Body" & vbCRLF & vbCRLF
f.Write "This is a test" & vbCRLF & vbCRLF
f.Close

I also used CDO.Message

Set myMail = Server.CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="[EMAIL PROTECTED]"
myMail.To="[EMAIL PROTECTED]"

myMail.TextBody="This is a message."
myMail.Send

But in both cases, i dont receive the mails. Does that mean that the 
mail server is not running?

Thanks,
KP






---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to