Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Mail Subject become SPAM (http://www.go4expert.com/forums/mail-subject-spam-t25814/)

newphpcoder 17May2011 15:31

Mail Subject become SPAM
 
I have code for mail subject:

PHP Code:

$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
PHP Code:

 $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.

pein87 20May2011 01:44

Re: Mail Subject become SPAM
 
The title is parsed for certain flags that tell the parser to stop sending it. Your including a filename, and date in the title which red flags due to the filename being included. Make the titles descriptive like "Your invoice from <blank>" then use the mail content to add the file as an attachment.


All times are GMT +5.5. The time now is 11:37.