Forum Moderators: coopster
I'm trying to setup a newsletter integrated into a website using php.
The main file newsletter_send.html is connected, with a form action, to emailnewsletter.php which includes a file called email.inc.php
Everything works fine except for the function setReturnPath which refuses to work. I have specified this line on emailnewsletter.php
$mail->setReturnPath("my@email.com");
and this other on email.inc.php
$mailHeader .= "--".$attachmentBoundary. "--";
return mail($this->mailTo,$this->mailSubject, "",$mailHeader,"Return-Path: my@email.com\r\n");
}
but it always gives me the following error:
Fatal error: Call to undefined method Email::setReturnPath() in /nl/emailnewsletter.php on line 36
Can anyone help me?
Many thanks,
Andrea