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

createEmbedViaData #5

Closed
MadCoder253 opened this issue Dec 14, 2015 · 0 comments
Closed

createEmbedViaData #5

MadCoder253 opened this issue Dec 14, 2015 · 0 comments
Labels

Comments

@MadCoder253
Copy link

Not sure, but I think /src/Message.php createEmbedViaData() method is missing the $contentType parameter. At least, it didn't work for me until I added the following changes. I needed to embed contentType = text/calendar, but it wasn't working.

/**
* Create a Swift new Image.
*
* @param string $data
* @param string|null $name optional
* @param string|null $contentType optional
*
* @return \Swift_Image
*
* @see \Swift_Image::newInstance()
*/
protected function createEmbedViaData($data, $name = null, $contentType = null)
{
return $this->getManager()->getDI()->get('\Swift_Image', [$data, $name, $contentType]);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants