Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Adding Attachment to Mail

Quote Reply
Adding Attachment to Mail
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.


Subject Author Views Date
Thread Adding Attachment to Mail ryel01 1956 Aug 27, 2001, 2:04 AM
Thread Re: Adding Attachment to Mail
Alex 1867 Aug 27, 2001, 1:11 PM
Thread Re: Adding Attachment to Mail
ryel01 1879 Aug 27, 2001, 1:33 PM
Thread Re: Adding Attachment to Mail
Alex 1880 Aug 27, 2001, 1:37 PM
Thread Re: Adding Attachment to Mail
ryel01 1947 Aug 27, 2001, 2:30 PM
Thread Re: Adding Attachment to Mail
bline 1872 Aug 27, 2001, 2:48 PM
Post Re: Adding Attachment to Mail
ryel01 1869 Aug 27, 2001, 3:20 PM