got a problem to send an email with the mail plug-in.
if use the prefs smtp > ok
if I try to specify it as an argument > fails.
the doc is not accurate on this, it says you can specify an overwrite arg which is the smtp host name or a property arg (array this one) afterwards.
shoud both be specified, only one? tried both, all failed.
starting from this, what should it be?
plugins.mail.sendMail( to, from, subject, body ,smtp_host, smtp_array);
smtp_host=?
smtp_array=?
I tried the doc example, ie
plugins.mail.sendMail( to, from, subject, body ,null, smtp_array);
also fails…
Hi lesouef,
Maybe this thread will help you further.
thanks, that did it.
in fact my syntax was correct, I had the correct array with pairs, it takes either the smtp name or name in an array (useless for me as I don’t need any authorization, so it’s only one name), but the amount of unused args in between must be correct, and one was missing…
they’d better put all params in an array, that would avoid this kind of problem by using named params for all.
thanks a lot.