General information
Category:
COM/DCOM and OLE Automation
Seems you have not proper syntax near Recipients.Add line. Try:
objRecip= mailmessage.Recipients.Add
objRecip.name = recpadd
objRecip.Resolve
mailmessage.Send
....
>I have a problem with sending email.
>i have code that i worked with about a year ago (on another computer) and can not get it to work now.
>
>mailsession = CREATEOBJECT("mapi.session")
>mailsession.Logon(myusername)
>
>mailmessage = mailsession.Outbox.Messages.Add
>mailmessage.Subject = &mysubject
>mailmessage.Text = getmytext
>mailmessage.Attachments.Add(myreportname, 0, 1, &getfile)
>
>messagerecp = objMessage.Recipients.Add(recpadd) && who it's to
>mailmessage.Send
>mailsession.Logoff
>
>this line gives me an error class definition mapi.session is not found.
>i do not believe i used any fox classes before with this.
>
>any suggestions would be great.
>thank you.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only