×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Showing BCC recipient on the To: line

Showing BCC recipient on the To: line 11 years 5 months ago #20889

  • Dave McComb
  • Dave McComb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
First of all, great plugin! We just moved to it from using sendmail and are happy with the plugin and CMandrill.

A couple of things: we use FSForm for a lot of form submissions. I noticed that the RSForm email process kept reverting to sendmail rather than Mandrill. I think we solved this by making the Cmandrill #1 in the system extensions.

We have another problem though where in RSForm Pro, we specify that an email confirmation goes to the user and a copy is BCC'ed to one of our staff as well. This worked great with sendmail, but now with CMandrill, both the user and the staff email address are showing up on the To: line in the email that the client receives.

Any thoughts on what could be causing this and how to fix it?

Thanks again.

Showing BCC recipient on the To: line 11 years 5 months ago #20893

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Interesting.
Back when I created Mandrill there was no option to use the bcc field. That is why I was adding the bcc address to the "to" field. I also thought that no matter how many addresses in the "to" field each user will receive with just 1 address in the "to" field? That is not the case? It should be actually.

Now according to the docs:
mandrillapp.com/api/docs/messages.html

the bcc_address field can contain just one e-mail. I'll need to figure out what should happen with multiple emails in the bcc field. Will let you know once I have more info/fix.

Regards,
Daniel

Showing BCC recipient on the To: line 11 years 5 months ago #20987

  • Dave McComb
  • Dave McComb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1

Daniel Dimitrov wrote: Interesting.
Back when I created Mandrill there was no option to use the bcc field. That is why I was adding the bcc address to the "to" field. I also thought that no matter how many addresses in the "to" field each user will receive with just 1 address in the "to" field? That is not the case? It should be actually.


No, it is definitely not the case. Both emails appear when you receive them.

Thanks.

Showing BCC recipient on the To: line 11 years 5 months ago #21025

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dave,
could you try the following. Go to plugins\system\mandrill\mailer\mail.php

on line 584 you'll find this:
		if(count($this->bcc) > 0) {
			$recipients = array_merge($recipients, $this->bcc);
		}

change it to
		if(count($this->bcc) > 0) {
$mandrill->message['preserve_recipients'] = false;
			$recipients = array_merge($recipients, $this->bcc);
		}

Does this solve the problem?
Daniel

Showing BCC recipient on the To: line 11 years 5 months ago #21039

  • Dave McComb
  • Dave McComb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
That seems to have fixed it. Thanks.
The following user(s) said Thank You: Stefan Basting

Showing BCC recipient on the To: line 10 years 5 months ago #26892

  • akash
  • akash's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hello,

Same Problem for my site.and i also change above line but still the bcc email in to line.

can you please give me a suggestion for that.
Please Reply asap.

Thanks
regarding
akash patel..
  • Page:
  • 1
Time to create page: 0.121 seconds