That code assumes that you have an SMTP server running on your own machine.
If you want to send through a remote SMTP server, you need to add other
code, as described in the article at http://www.paulsadowski.com/WSH/cdo.htm
under the sections "Sending a text email using a remote server" and "Sending
a text email using authentication against a remote SMTP server."
It might be possible to modify your original code to work without trigging
security prompts, but since we don't know what that code was, that's only
"Daniel" <donotreply2me[at]yahoo[dot]com> wrote in message
> After reading that page I changed my code to this:
> Sub Mail()
> If Item.Userproperties("ID") = "" Then
> Set objMessage = CreateObject("CDO.Message")
> objMessage.Subject = "New Post in HelpDesk Folder"
> objMessage.From = "HelpDesk@*********.com"
> objMessage.To = "*******@**********.com"
> objMessage.TextBody = "There's a new Post in the HelpDesk Folder"
> objMessage.Send <--- I get the error on this line.
> End IF
> End Sub
> But when I try to send I get this error:
> The SendUsing configuration value is invalid.
> I'm using outlook vbscript..