oMail = NewObject("wwIPStuff", "wwIpStuff.vcx") with oMail .cMailServer = alltrim(This.cboMailServer.DisplayValue) .cUserName = alltrim(This.cboSenderEmail.Value) .cPassword = alltrim(This.txtPassword.Value) .cSenderEmail = lcSenderEmail .cSenderName = lcSenderName .cSubject = alltrim(This.txtSubject.Value) .cMessage = This.edtMessage.Value .cAttachment = This.txtAttachment.Value .cRecipient = alltrim(This.cboRecipient.DisplayValue) .cCCList = alltrim(This.cboCCRecipient.DisplayValue) .cBCCList = alltrim(This.cboBCCRecipient.DisplayValue) llResult = .SendMail() && Send - wait for completion if !llResult This.cErrorMessage = .cErrorMsg llResult = .f. endif endwith oMail = .null.To send to multiple recipients, just separate them with a comma.