Results 1 to 10 of 10

Thread: BCC of email ad enquiries - Please help.

  1. #1
    Thread Starter
    Amateur
    Not a Verified Customer
    pkmonockus's Avatar
    Join Date
    Jun 2009
    Location
    NZ
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    BCC of email ad enquiries - Please help.

    Hi, I would like to know when people are emailing an enquiry about an ad. I was thinking of a BCC. Is there a way to modify the code so that I can receive a duplicate email?

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: BCC of email ad enquiries - Please help.

    You'll want to edit the single.php and try adding a bcc statement to this

    Code:
    mail($receiver_email,$subject2,$body,"From: $email2");
    Code:
    mail($receiver_email,$subject2,$body,"From: $email2","Bcc:youremail@domain.com");
    That might do it otherwise play around with it and read more about the php mail function until it works properly.

  3. #3
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts

    Re: BCC of email ad enquiries - Please help.

    I would definitely be interested in this too.. if someone works it out, please post the info! I just tried looking in the folder suggested but couldn't find the file to edit

  4. #4
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: BCC of email ad enquiries - Please help.

    My mistake. Edit the single.php file instead.

    Quote Originally Posted by pepsi
    I would definitely be interested in this too.. if someone works it out, please post the info! I just tried looking in the folder suggested but couldn't find the file to edit

  5. #5
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts

    Re: BCC of email ad enquiries - Please help.

    Thanks Dave. I made the change as suggested, tested it out and I think it works..kind of? Might just need something else to fix it up?

    I have a couple of ads on my website which are things I am selling, so to test it out I sent an e-mail from a different address. I then expected to see 2 e-mails in my inbox..one directly to the ad poster address, and another bcc version.

    What I got was (I think) only the bcc one...as instead of showing the senders e-mail address - it shows the host mailbox address as the "from" (although the body of the e-mail shows the sender details).. So it appears the actual e-mail the ad poster should receive, didn't come through? Maybe my test method was flawed and I need to test it using a third e-mail address as the bcc?

    Like you said, it might take some playing around with, so I will wait for someone to figure it out and hopefully post here

  6. #6
    Member success's Avatar
    Join Date
    Apr 2009
    Location
    Singapore
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: BCC of email ad enquiries - Please help.

    A private messaging system like on a forum would be great. There are many benefits of a PM system.

    - Admin can monitor for spammers and ban them.

    - When a PM is sent, an email notification is send to Seller. Seller and Buyer have to come back to your classified to read their PM, this bring a lot of return traffic.

  7. #7
    Amateur
    Not a Verified Customer
    thedave's Avatar
    Join Date
    Jun 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: BCC of email ad enquiries - Please help.

    Has anyone found a fix to this? The only way to truly gauge how well your site is doing is to know how many contacts are being made...not to mention that the contact information is extremely important data to anyone trying to run a successful website.

    I am sure there is a simple fix. The one suggested above does not work. Anyone?

  8. #8
    Amateur
    Not a Verified Customer
    thedave's Avatar
    Join Date
    Jun 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: BCC of email ad enquiries - Please help.

    ::bump::

  9. #9
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: BCC of email ad enquiries - Please help.

    I actually had a mistake in the sample above (which has now been corrected) which explains the weirdness Pepsi. BTW, this code will be better written in 3.0.

    For a fix until then, try this instead and let me know if it worked:
    Code:
    mail($receiver_email,$subject2,$body,"From: $email2","Bcc:youremail@domain.com");
    Quote Originally Posted by pepsi
    Thanks Dave. I made the change as suggested, tested it out and I think it works..kind of? Might just need something else to fix it up?

    I have a couple of ads on my website which are things I am selling, so to test it out I sent an e-mail from a different address. I then expected to see 2 e-mails in my inbox..one directly to the ad poster address, and another bcc version.

    What I got was (I think) only the bcc one...as instead of showing the senders e-mail address - it shows the host mailbox address as the "from" (although the body of the e-mail shows the sender details).. So it appears the actual e-mail the ad poster should receive, didn't come through? Maybe my test method was flawed and I need to test it using a third e-mail address as the bcc?

    Like you said, it might take some playing around with, so I will wait for someone to figure it out and hopefully post here

  10. #10
    rtibbs4's Avatar
    Join Date
    Aug 2009
    Location
    United States
    Posts
    358
    Thanks
    9
    Thanked 4 Times in 4 Posts

    Re: BCC of email ad enquiries - Please help.

    This code worked perfectly for me.

    Code:
    mail($receiver_email,$subject2,$body,"From: $email2","Bcc:youremail@domain.com");
    I receive the sender and ad owner email as well as the content of the message.

    thanks david!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New User Email Plugin in 3.02 BUG - Send Notification Email
    By zontor in forum ClassiPress General Discussion
    Replies: 15
    Last Post: December 25th, 2013, 11:23 AM
  2. Email shows from Wordpress-I DO use SB Welcome Email Editor
    By netpotion in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: April 24th, 2010, 08:41 PM