[RESOLVED] I use phpmailer and php mail() to send bcc email-VBForums
Results 1 to 10 of 10

Thread: [RESOLVED] I use phpmailer and php mail() to send bcc email

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    Resolved [RESOLVED] I use phpmailer and php mail() to send bcc email

    I am mr A

    I send a message to Mr B

    I also add BCC to Mr C and Mr D

    mr B gets a message and it is addressed to him

    Mr C and Mr D receive the same message BUT they are addressed to mr B and they see Mr B's address!

    So how do i send BCC emails in such a way so that they are addresses to each individual recepient and not the "TO" email.

    is there any advanced feature in the mail or phpmailer scripts??

  2. #2
    PowerPoster
    Join Date
    May 2002
    Posts
    25,298

    Re: I use phpmailer and php mail() to send bcc email

    you need to add all of the addresses to the BCC ...
    that's what the B is for... it's a Blind Courtesy Copy .... means that no one can see who got it as a result of the BCC.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    Re: I use phpmailer and php mail() to send bcc email

    i know that. thanks but you misunderstood.

    When a person in the BCC gets an email from me, where it says
    " TO: mr x@yahoo.co.uk"

    I want that email to show THEIR email address NOT the email address of someone else

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,911

    Re: I use phpmailer and php mail() to send bcc email

    That sounds suspicious! Why do you want to do that?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  5. #5
    PowerPoster
    Join Date
    May 2002
    Posts
    25,298

    Re: I use phpmailer and php mail() to send bcc email

    but you didn't send it TO them.... you sent it TO someone else, with them in the BCC.... if you don't want them to see who it went to, then don't put any names/addresses in the TO, and just put them all in the BCC.

    Some systems won't send unless there's an address in the TO field... in this case I've seen people send it to themselves (so the TO & FROM are the same) and then put all the recipients into the BCC.

    another alternative is to start a loop and send the email one at a time, replacing the TO address on each loop. Downside of this is that some SMTP servers will see this as spamming and will mark the email as such on its way out.


    Nightwalker - it's a common practice, especially where you're sending out newsletters where you don't want to reveal your entire list. I get a lot of newsletters this way.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    Re: I use phpmailer and php mail() to send bcc email

    yes youre right, people always assume the worst when it comes to send bulk emails. People in business send bulk emails like every day. Its not illegal.

    Il try sending with blank TO field. im not too keen on sending to myself, just fill my inbox up, but it might be the best thing

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,911

    Re: I use phpmailer and php mail() to send bcc email

    Quote Originally Posted by techgnome View Post
    Nightwalker - it's a common practice, especially where you're sending out newsletters where you don't want to reveal your entire list. I get a lot of newsletters this way.
    I know about the BCC and CC I was confused about:

    So how do i send BCC emails in such a way so that they are addresses to each individual recepient and not the "TO" email.
    I think I was just getting myself confused ask to what the original post was talking about.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  8. #8
    PowerPoster
    Join Date
    May 2002
    Posts
    25,298

    Re: I use phpmailer and php mail() to send bcc email

    yeah. it's not completely clear is it? I only got it because I've done this before....
    What he was doing is sending emails like this:

    FROM: Me
    TO: A
    BCC: B, C, D, E


    When A gets the email it looks like it went to A and only A.
    When B gets the email B can see that A also got it... but no one else...
    Same with C and so on.

    What the OP wants is that when A gets the email, it comes TO A ... when B gets the email it comes TO B .... so that B doesn't see that A also go it... or C.

    The short answer is that the only way to hide the other recipients is to but all of the addresses in BCC, and leave TO blank. Now when the recipients get it, it looks like only they got the email... even though it shows up in the BCC, not TO.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  9. #9
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,911

    Re: I use phpmailer and php mail() to send bcc email

    Quote Originally Posted by techgnome View Post
    yeah. it's not completely clear is it? I only got it because I've done this before....
    What he was doing is sending emails like this:

    FROM: Me
    TO: A
    BCC: B, C, D, E
    I was thinking he wanted to use a variable to changed the address in the "TO" field to that of one in the "BCC" field. He mentioned in his original post that he knows about "BCC" field. Also, to overcome the situations where the email service complains about no email address in the "TO" field he could just but his email address.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    Re: I use phpmailer and php mail() to send bcc email

    leaving "to" field blank when using php mail works fine. thanks guys.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.