last day (15 days later) » 

6:59 PM
1
Q: PHPMailer sends emails randomly, for x amount of times

Steven DropperI'm using phpmailer for emails and basically what is happening that when I execute the code, I get the email instantly, it's fine and no problems right? But then, let's say a day later, without any execution or whatever, I get a new email (with blank variables within the so some parts of the me...

 
@SebastianBrosch - yes but that's not the case. i'm getting the emails to MY email and noone basically knows about the website, so multiple form submission is not possible
Also there are verifications if the email exists in the database, then send it.. but the vars in message are blank (undefined) so there must be something else going on
@Martin - okay, i'll put there my entire code
@Martin - You got it
 
Could you add the header data from one of these unexpected emails that arrives? It may help shed light on this. And which version of PHPMailer are you using? Cheers
 
@Martin - Wait... my mind just blow up... i have to recover... i noticed in my email something mind blowing (|_|)
 
you added yourself as a CC haha, mind blown? :-D
 
@Martin - no... but... i'll explain it in question
@Martin - no, it's another problem tho
@Martin - see my question now...
 
6:59 PM
I'm sorry it looks like this confusion is something that can be sorted out by viewing all related stuff, (all the site files, and details etc.) but it seems to be an issue derived from developing,perhaps there's a script with old code in it? Or some sort of similar left over from dev builds. I don't get how PHPMailer seems to correlate with sending emails from mail as your previous ~(linked) question references.... yeah I'm confused :-(
 
@Martin - thats why i told you my mind blow up... i dont get it... it's obviously from phpmailer, but the old code doesnt exist anymore... i dont get it.. maybe there's a bug in the life itself... maybe the universe is too small to fit that extra piece of code in it so it uses the old one.. sorry for this bs i'm talking but this stuff just totally confused the fck out of me..
there's also no interraction between my code/files whatsovever...
 
If it's not too much hassle, I'm tempted to delete all files from your remote server and then only reupload files you've viewed and opened so you know exactly what's on the remote host, I don't have any clear answers for what's happening -- emails can be delayed in delivery for various reasons usually associated with authentication such as if you don't have DKIM or DMARC or SPF set up (etc, etc)
Your remote sender (smtp.mail.com) may well be a weak point here, if this is a third party sender then your emails may be "queued" , especially if it's a free/cheap service. It doesn't explain the old emails appearing, but could explain the unexpected timescales
I would still maintain you should add a time() or a date("r") variable into your sent emails so that whenever an email appears in your inbox you can establish if it was freshly sent or a delayed delivery.
delayed delivery would further point to one of your issues being routed in the 3rd party SMTP service
And viewing the headers of the emails you receive can alsobe useful. edit and add them into your question can hep rule out certain issues. :)
 

  last day (15 days later) »