vbscript not running in php but running as a vbs file

"Rui" <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
hi
im having a problem with a vbscript that sends mail .

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "mysubject"
objMessage.From = "mymail"
objMessage.To = "destinator"
objMessage.TextBody = "mytextbody"
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") 
= 2
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") 
= "mysmtp"
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") 
= 25
objMessage.Configuration.Fields.Update
objMessage.Send

if i run this like a vbs file it runs like a charm . i receive the mail no 
problem .

if i add this to a php page with the tags
<SCRIPT LANGUAGE="VBScript">
......
</SCRIPT>

it does not work . it does not give any error .....and if i check smtp 
server log it does not even get to the server .
it looks either it does not process or it doesnt leave the workstation.

any ideias ?

thks in advance

rgds
rui 


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.