The message body is just
one string, so you are passing it only the first line.
Try adding "&" before and after the linefeeds to concatenate the string.
Or build up the message text in a variable and just pass that one variable to the revMail command.
Code: Select all
on mouseUp
local tMsgBody
put "Dear" && fld "Mcontact" & "," & lf into tMsgBody
put "Thank you for your order No" && fld "CustOrderNo" && "which has now been processed." & lf after tMsgBody
put "Expected delivery is" && fld "dateReqd" & lf after tMsgBody
revmail fld "Memail",, "Confirmation of Order", tMsgBody
end mouseUp