vbscript not running in php but running as a vbs file
| From: | Rui | Date: | Sat, 23 May 2009 08:57:48 +0000 |
| Subject: | vbscript not running in php but running as a vbs file | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-29349@lists.php.net to get a copy of this message | ||
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