vbscript not running in php but running as a vbs file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux