Hi,
I'm tearing my hair out trying to get an image send inline with phpmailer.
I have the class working and everything but i keep getting this error when i test the page
Parse Error
This is the code i am using to send the mail
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "localhost"; // SMTP server
$mail->From = "postmaster@mysite.com";
$mail->AddAddress("a@mysite.com");
$mail->AddEmbeddedImage("cover17.jpg", "http://www.mysite.com/images/cover17.jpg", "cover17.jpg"));
$mail->Subject = "online";
$mail->Body = 'Embedded Image: <img alt="cover" src="cid:http://www.mysite.com/images/cover17.jpg"> Here is an image!';
$mail->Body = "See if this works";
$mail->WordWrap = 50;
In the example given on the phpmailer site it says
$mail->AddEmbeddedImage("rocks.png", "my-attach", "rocks.png"));
$mail->Body = 'Embedded Image: <img alt="PHPMailer" src="cid:my-attach"> Here is an image!';
But i am not sure how to access my image that i wan tin line in the first place.
If anyone has used this or know the solution i would really appreciate it.