I have a site that shows floor plans for houses. I want to allow users to share a floor plan via an email form where they can enter their email address and their friend's email address who they want to share with. Then when they enter their message and submit, the image of the floor plan will be attached to the outbound email from the server.

  • It sounds like what you're asking for isn't a drag-and-drop sort of feature. It would require building a custom module. Are you asking how to do that? – MikeNGarrett Apr 25 '11 at 4:48

You can use the Send feature in the Printer, e-mail and PDF versions Module. It will allow your user to send the page as rendered in HTML, attached images, and custom messages.

| improve this answer | |
  • this may not be the perfect answer to the question, but it ended up being the solution my friend ended up using. – Jake May 28 '11 at 3:59

If you are willing to write your own module, check out the mimemail module. Sending the mail is as easy as this:

mimemail($sender, $recipient, $subject, $body, $plaintext = NULL, $headers = array(), $text = NULL, $attachments = array(), $mailkey = '')

If you store the picture in a imagefield or filefield inside a node, you can put that field into the attachments array and send it.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.