Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Posts
    713
    Thanks
    165
    Thanked 0 Times in 0 Posts

    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.

  • #2
    New Coder
    Join Date
    May 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you sure it's being treated as spam? I wouldn't have thought the delivery would fail if it were being marked as spam. Why don't you try adding the desired information manually as a test, (simply type in a filename, date and weekno, formatted as you need it to be), if this works then it's your code, not the nature of the information itself.

  • #3
    Regular Coder
    Join Date
    Aug 2010
    Posts
    713
    Thanks
    165
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mrjezz View Post
    Are you sure it's being treated as spam? I wouldn't have thought the delivery would fail if it were being marked as spam. Why don't you try adding the desired information manually as a test, (simply type in a filename, date and weekno, formatted as you need it to be), if this works then it's your code, not the nature of the information itself.
    But my filename is getting from other function/method when I tried to used text it works. I really need to solved it and its my first time to encountered this kind of problem


  •  

    Posting Permissions

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