Quote:Have you tried using a semi-colon to seperate the file names/paths?
-Ray
Ray,
Is it supposed to work with a semi-colon delimited string?
I originally tried the code below on my test button. Only doc1 was received. If you think it should work with semi-colon delimited string I will go back and play some more. I had very little knowledge of @Sendmail when I was playing with it so I was just guessing and when it did not work I used the @shell commands I was comfortable with and winzip.
var b as int
Var Vattachment as string
Var Vsubject as string
Var VFromEmail as string
Var VpropertyBrokerEmail as string
Var vbody as string
Var Vattach1 as string
Var Vattach2 as string
Vsubject= "test multiple docs"
VFromEmail = "bob-scott@usa.net"
VpropertyBrokerEmail = "bob-scott@usa.net"
vbody = "testing multiple body"
Vattach1 = "PMI\Quotes\doc1.rtf"
Vattach2 = "PMI\Quotes\doc2.rtf"
Vattachment = Vattach1 +";"+ Vattach2
Writeln(Vattachment)
b=@SendMail("smtp.postoffice.net", vsubject , VFromEmail, VpropertyBrokerEmail, "", "", vbody, "Bob-scott@usa.net", "PasswordHere", Vattachment)
Thanks for the help