Originally Posted By: Allen
There is more than one sendmail UDF here... is this one the one you are using?

Sendmail -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=201907#Post201907

If so,

You don't have to double up on @ or turn or nomacros, it takes care of it. (Although turning on NoMacrosinstrings is a good practice)

You can use a variable in any of the parameters of the function, ie sendmail($to_name,$from_name,"Date: " + @date)

For this particular sendmail function your syntax would be:

$RC=sendmail('george.little@test.lobi.com,'test@test.lobi.com','Testing 1-2-3','Goats',"Text",,'smtpmail.lobi.com')


You were putting the smtp server where the attachment goes. So adding a comma will allow you to omit the attachment and put the server in the correct location.
The quoting is still odd.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.