What's the value of memail when you get the error?
>I am using the following code to send emails to customers
>under program control. For the last month it seemed to
>work fine. But now I'm getting a error saying Outlook
>doesn't recognize one or more names.
>
>Any help on what that actually means would be great.
>
>Brad
>
>memail = alltrim(gencmt) && email address for customer
>mfile = 'c:\transfer\test\emails\'+mfile
>**********************************************************
>o=createobject("outlook.application")
>oitem=o.createitem(0)
>oitem.subject="SSC Customer Water Bill"
>oitem.to = memail
>oitem.body="See attachment for current water bill"
>oitem.Attachments.Add(mfile)
>oitem.send
>o=.null.