but the images is still only showing when the $->attach(); is inside of sub email
To attach the images you need the $msg object, and as you have it, that object is lexically scoped to your email function.
Anyhow, why do you want to attach the images outside of the function?
In reply to Re^3: Attaching images to email html template help!
by Eliya
in thread Attaching images to email html template help!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |