Page 1 of 1

Troubleshoot multiple emails sent by HtmlmimeMail

Posted: Mon Dec 01, 2008 10:27 am
by floydus
I'm using htmlMimeMail it's working fine except that the same email is sent multipe times to the same address, is there a way to fix it ? In fact, to inform you, the header and time is different for each email... It might be the webserver, is there a way to fix this issue, should I use another method for sending my email.
Can you quickly suggest some tips, or a way to debug it ?

Oh here's my code, part of it do...

Code: Select all

$mail = new htmlMimeMail();
     $mail->setHtml("Bla bla bla");
        $mail->setReturnPath("myaddress@myserver.com");
        $mail->setFrom(meftexte("user...")"<"is email>");
        $mail->setSubject('WebSite Form Submit');
        $mail->setHeader('X-Mailer', 'My Company');
        $result = $mail->send(array ('add1@on.ca', 'add2@on.ca','add3@on.ca'), 'smtp');
.....

Thanks.