SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    attachments in mailto

    Hi,
    I have two files (on the server) and I need to send them as attachments in a mailto.
    Can this be done? I will appreciate any help.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    You need to do this with a special kind of form (using PHP or similar) so I've moved this to the PHP forum.

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Ralph,
    Thanks, "adquiro"
    The problem is that I need to do this from a WP post and the php there is not working.
    I need to do this with mailto..............
    Regards.

  4. #4
    SitePoint Wizard silver trophy
    Join Date
    Aug 2003
    Location
    Southern California
    Posts
    4,686
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    When you say mailto is not working how exactly is the message getting sent? Is the user sending an email with preset attachments to someone else? Are they suppose to change based on what they enter?
    - Ted S

  5. #5
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Ted,
    What I need is preset statement allowing the user to send a pdf from the server to some email address.
    The only thing the user can change is the email and this will be from his email client software.
    What time is it over there?

  6. #6
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ralph, how can I go to the PHP forum to find it ?

  7. #7
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by esn003 View Post
    Ralph, how can I go to the PHP forum to find it ?
    This thread is in the PHP forum now.

    I'm still not clear on what you are trying to do. The user clicks a mailto link that opens their email client, right? That would normally send an email to you. But presumably that's not what you want here. So what are you trying to achieve?

  8. #8
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    This thread is in the PHP forum now.

    I'm still not clear on what you are trying to do. The user clicks a mailto link that opens their email client, right? That would normally send an email to you. But presumably that's not what you want here. So what are you trying to achieve?
    Right. I also want to attach a file (pdf) from the server. The mail will be a "Send a friend" like.

  9. #9
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    As a simple solution, you could just include a message in the email with a link to the pdf file, which the receiver could use to download the file.

    But really, my suggestion would be to add a link in your post to a separate page with a form on it. That form would include an input for the friend's email address, the user's email address, an optional message field, and a submit button. The friend would receive an email with a link to download the PDF.

  10. #10
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've done that.
    Some users call us and ask to receive an email with that pdf as attachment
    and this is what I am looking for. A button to do this with a mailto behind it.

  11. #11
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    So it this a button for you rather than for them? I'm still confused, I'm afraid.

  12. #12
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No Ralph, the button is for them, kind of 'Send to a friend' one can use to send to whom they want

  13. #13
    SitePoint Wizard silver trophy
    Join Date
    Aug 2003
    Location
    Southern California
    Posts
    4,686
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    You'll need to write [or find] a script that takes their input [their friend's email address] and sends an email with the attachment.

    I realize that's very simple for an answer but you're really talking about some complex pre-built script. Rather it's seeing if there's a small snippit out there you can use or modify to perform what amounts to a rather basic task. Of course there's some more complex concerns like people spamming others as a joke or such.

    You should however note that attachments, especially PDFs have a very high spam hit rate and even higher when generated dynamically versus through an established email communication. It may be better to leave the PDF uploaded somewhere and include it as a link.
    - Ted S

  14. #14
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ted S View Post
    You should however note that attachments, especially PDFs have a very high spam hit rate and even higher when generated dynamically versus through an established email communication. It may be better to leave the PDF uploaded somewhere and include it as a link.
    Thank you Ted for this thought. Spam is bad and we don't want to open the dor to it.
    We must think different about this issue.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •