Hi,
I've written a small script that's an extension to links, and I want to attach a jpeg image to it 1/2 way through the email message body.
I'm just fiddling with the mail functions, but am getting internal server errors every time I try to include an attachment into an object with this piece of code:
$mail->attach (
type => 'text/plain',
encoding => '-guess',
body_path => '/path/to/file',
filename => 'test.txt'
);
I'm not 100% sure on what to do here, can anyone help me out?
Cheers,
R.
I've written a small script that's an extension to links, and I want to attach a jpeg image to it 1/2 way through the email message body.
I'm just fiddling with the mail functions, but am getting internal server errors every time I try to include an attachment into an object with this piece of code:
$mail->attach (
type => 'text/plain',
encoding => '-guess',
body_path => '/path/to/file',
filename => 'test.txt'
);
I'm not 100% sure on what to do here, can anyone help me out?
Cheers,
R.