CwEMail Order Form and Price List
Sample Code:
?ole1{'Reset'} !clear adddresses and attachments
?ole1{'Host'}='mail.someserver.com' !set SMPT Mail host address
?ole1{'From'}='youremail@someserver.com' !set Senders Address
?ole1{'FromName'}='yourename' !set Senders Name
?ole1{'Subject'}='This is the Subject' !set Subject
?ole1{'Body'}='This is the Body' !set Body
?ole1{'IsHTML'}=False !set Body contains HTML
?ole1{'AddAddressEmail'}='email@somewhere.com' !set Recipients address
?ole1{'AddAddressName'}='someones name' !set Recipients name
?ole1{'AddAddress'} !add Recipients address/name (multiple Recipients ok)
if loc:Attachment<>'' then
?ole1{'AddAttachment'}='c:\myfile.jpj' !add Attachment File (multiple attachments ok)
end
setcursor(cursor:wait)
?ole1{'Send'}
setcursor
if ?ole1{'ErrorNumber'}<>0 then
message('Error: ' & ?ole1{'ErrorNumber'} & '|' & ?ole1{'ErrorDescription'})
else
message('Your Email Has Been Sent!')
end