Jump to content

Mail Subject cause SPAM

- - - - -

  • Please log in to reply
1 reply to this topic

#1
newphpcoder

newphpcoder

    Programming Professional

  • Members
  • PipPipPipPipPipPip
  • 479 posts
I have code for mail subject:


$Mail->Subject = 'Preview/' . $this->csvUploadPaymentDetails[0]['csvfilename'].'/'.date('d-m-Y').'/'.$this->csvUploadPaymentDetails[0]['week_num']; 


The problem is the mail was become SPAM, I got this message
Mail delivery failed: returning message to sender. How can I prevent my email become not SPAM?

When my subject is only this: $Mail->Subject = 'Preview'; it works, but I need my subject is
 $Mail->Subject = 'Preview/' . $this->csvUploadPaymentDetails[0]['csvfilename'].'/'.date('d-m-Y').'/'.$this->csvUploadPaymentDetails[0]['week_num'];
, because I need to have filename,date, and weekno in my subject.

It's my first time to encounter this error.

Thank you..any help is highly appreciated.

Edited by newphpcoder, 17 May 2011 - 02:42 AM.


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
I would contact the person/customer that returned it as spam. Every spam filter is different. Some filters will block anything that comes from support@[company].com
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users