SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2010
    Location
    Cape Town, South Africa
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHPMailer sending duplicate email

    I am currently selecting email addresses from a database and sending an email to each email address.

    I have logged the script and the script is only calling the function 5 times, and only adding the email once to PHPMailer (debugged in PHPMailer), but PHPMailer seems to be sending my email twice.

    Even when I am only sending an email once.

    I have no idea what is wrong here, tried googling but no luck.

    Have any came across the same problem before?

  2. #2
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    669
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes.. I've come across the problem of people not posting their code quite a lot.
    I'll do anything to avoid working on my own code

    Are you using: if (isset($_POST['submit'])) ?
    IE has a bug and does not always send the value.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •