Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] Fix Sparkpost Driver #13755

Closed
wants to merge 1 commit into from
Closed

[5.2] Fix Sparkpost Driver #13755

wants to merge 1 commit into from

Conversation

billmn
Copy link
Contributor

@billmn billmn commented May 28, 2016

This PR fix some issues of the Sparkpost driver, like:

Tested with all combinations of TO, CC and BCC fields (with single and multiple addresses) and with/without attachments.

Feedback are welcome.

Fix recipient fields, attachments and message plain version
@billmn billmn changed the title Fix Sparkpost Driver [5.2] Fix Sparkpost Driver May 28, 2016
@GrahamCampbell
Copy link
Member

GrahamCampbell commented May 28, 2016

Thanks @billmn. Pinging @pochocho for feedback please.

@pochocho
Copy link
Contributor

Ran some tests looks good. The only thing I did notice though is that when sending using both "To" and "BCC" the BCC recipients doesn't see his email on the recipient list. Only the ones passed as "To". @billmn @GrahamCampbell

@taylorotwell
Copy link
Member

@pochocho so there is still a bug? Why does this seem so much harder than the other mail drivers? :|

@pochocho
Copy link
Contributor

@taylorotwell we'll with my previous PR the recipientes thing was solved. @billmn can you add the attachments fix without changing how I generated the recipients array?

@billmn
Copy link
Contributor Author

billmn commented May 29, 2016

@pochocho In your PR (#13361) you have only set owned address to the "header_to" parameter. This means that every recipient see only own email address in TO field and doesn't see any other recipient (of TO or CC field).

@pochocho Why do you want that BCC recipients see own email on the recipient list?

I have sent an email like below using: Sparkpost Driver, Mandrill Driver, SMTP Driver, from Gmail webmail and from Office 365 webmail. None of these show own email in TO field for BCC recipients.

Mail::send(['html', 'plain'], [], function($message) {
    $message
        ->to([
            '[email protected]',
        ])
        ->cc([
            '[email protected]',
        ])
        ->bcc([
            '[email protected]',
            '[email protected]',
        ])
        ->subject('SparkPost Test')
        ->attach(public_path('robots.txt'))
        ->attach(public_path('web.config'));
});

@taylorotwell Seems harden because, to avoid that TO field is empty when are only BCC recipients, it was removed the use of "email_rfc822" parameter: #13237

I have sent some email with only BCC recipients using SMTP Driver, Mailgun driver and from Gmail webmail ... the TO field is empty. I don't have a Mandrill account so I cannot test this.

@taylorotwell @GrahamCampbell Sincerely I'm not convinced it's worth complicating the driver management to fill the TO field when are only BCC recipients. With the other email drivers is already like that. What is your opinion? Back or not to "email_rfc822"?

@RicardoRamirezR
Copy link

The TO filed should not be filled with anything other than the TO content.

@taylorotwell
Copy link
Member

Where are we at with this? Does this PR still have bugs or not?

@billmn
Copy link
Contributor Author

billmn commented May 30, 2016

@taylorotwell Not for me but I'm waiting some feedback from my previous comment.

Personally, I think is better restore "email_rfc822" parameter to have the same simplicity like other email driver.

@taylorotwell
Copy link
Member

Yes why is this so complicated compared to the other drivers?

@billmn
Copy link
Contributor Author

billmn commented May 30, 2016

@taylorotwell Take a look here: #13237 (comment)

To avoid that TO field is empty when are only BCC recipients, it was removed the use of "email_rfc822" parameter and after that the code is more complicated compared to other drivers.

@taylorotwell
Copy link
Member

Yeah can someone just PR back to the simple version please?

On May 30, 2016, at 9:54 AM, Davide Bellini [email protected] wrote:

@taylorotwell https://github.com/taylorotwell Take a look here: #13237 (comment) #13237 (comment)
To avoid that TO field is empty when are only BCC recipients, it was removed the use of "email_rfc822" parameter and after that the code is more complicated compared to other drivers.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #13755 (comment), or mute the thread https://github.com/notifications/unsubscribe/AAcRfj2_7bIEdAUZimK_wF_r6qRSzQ0Gks5qGvolgaJpZM4IpIIz.

@billmn
Copy link
Contributor Author

billmn commented May 30, 2016

Yes, I can do it

@billmn
Copy link
Contributor Author

billmn commented May 30, 2016

Closed in favour of this #13780

@billmn billmn closed this May 30, 2016
@billmn billmn deleted the sparkpost-fix branch May 30, 2016 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants