Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Send Image Via Email

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 538 Views
  • web2works
    Community Member
    50 Posts

    Send Image Via Email Link to this post

    I have wrote the attached enquiry form, that allows a user to upload a image.

    Everything works and I can view the image via the admin area although in the email the image outputs:
    Image: array ( 'name' => 'template_design_04.jpg', 'type' => 'image/jpeg', 'tmp_name' => '/tmp/phpPwiEcC', 'error' => 0, 'size' => 858123, )

    Also I need to set a max width/height for the images when displayed via the dataObectManager in the admin area. Where do I put?
    public function getDOMThumbnail() {
    if($i = $this->YourImage()) {
    return $i->CroppedImage(50,50);
    return false;

    Thanks for any help or advice you can give me.

    Attached Files
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.