esn003 — 2012-03-06T08:48:24-05:00 — #1
I have two files (on the server) and I need to send them as attachments in a mailto. :rolleyes:
Can this be done? I will appreciate any help.
ralphm — 2012-03-06T16:53:47-05:00 — #2
You need to do this with a special kind of form (using PHP or similar) so I've moved this to the PHP forum.
esn003 — 2012-03-07T02:30:51-05:00 — #3
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..............
ted_s — 2012-03-07T02:49:48-05:00 — #4
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?
esn003 — 2012-03-07T02:57:05-05:00 — #5
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?
esn003 — 2012-03-07T03:48:16-05:00 — #6
Ralph, how can I go to the PHP forum to find it ?
ralphm — 2012-03-07T04:07:39-05:00 — #7
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?
esn003 — 2012-03-07T04:15:59-05:00 — #8
Right. I also want to attach a file (pdf) from the server. The mail will be a "Send a friend" like.
ralphm — 2012-03-07T04:34:12-05:00 — #9
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.
esn003 — 2012-03-07T04:51:20-05:00 — #10
I've done that.
Some users call us and ask to receive an email with that pdf as attachment :rolleyes:
and this is what I am looking for. A button to do this with a mailto behind it.
ralphm — 2012-03-07T07:07:40-05:00 — #11
So it this a button for you rather than for them? I'm still confused, I'm afraid.
esn003 — 2012-03-07T07:31:41-05:00 — #12
No Ralph, the button is for them, kind of 'Send to a friend' one can use to send to whom they want
ted_s — 2012-03-07T17:06:16-05:00 — #13
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.
esn003 — 2012-03-08T03:36:44-05:00 — #14
Thank you Ted for this thought. Spam is bad :mad: and we don't want to open the dor to it.
We must think different about this issue.