FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » CLP - ON TOPIC! - Need PHP form email help, Please!
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173111 is a reply to message #173110] Tue, 22 March 2011 04:58 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Tim wrote:
> In article <im93gr$8bp$1(at)news(dot)eternal-september(dot)org>, Jerry Stuckle
> <jstucklex(at)attglobal(dot)net> wrote:
>
>> On 3/21/2011 6:31 PM, Tim wrote:
>>> I have a form in which the user can upload a photo, which is then sent
>>> to me along with the other data on the form. I have formatted the data
>>> into an HTML email with the photo attached. I would like the photo
>>> embedded in a specific place on the page, but I have not found the code
>>> to do this and don't know enough about it to write the code myself.
>>>
>>> It would also be nice to be able to have the photo, once uploaded, to
>>> replace the upload button and associated text on the page in the place
>>> I want the photo to appear. Then maybe send the page as is as an HTML
>>> email?
>>>
>>> Any help would be appreciated.
>> And your PHP question is?
>>
>> Sounds more like you need to learn how to format the email correctly,
>> which is an email/HTML question. Try a more appropriate newsgroup
>> (maybe alt.html - I don't know).
>
> The problem is not formatting the email, the problem is getting the php
> to take the image, whose name I can't know, and embedding it into the
> email. The php code constructs the email using my template and the data
> input by the user. Since I don't know the name of the file, and it is
> stored in a temp directory, I need the code that will place the image
> where I want it. In other words: it needs to convert the filename into
> the appropriate "<img src" html.
>
> I'm sure this seems very simple to all the code gurus, but I have found
> nothing that even comes close to this in any of the tutorials I have
> read.
>
> I have thought about saving the images to a permanent directory and
> changing the name to make the html easier, but there are several
> reasons to keep the original name and I don't want to keep the images
> on the server. So I need some php to assemble the html using unknown
> values.
>
> So far I have the image attached to the email, but not embedded. My
> attempt at embedding it resulted in the filename being displayed where
> the image should be. So it is not just a matter of html formatting.

Its a bitch actually, and half the time it doesn't work if the target is
Outlook based.

Get yourself a copy of that benighted program and embed a (small)
picture in it, send it to yourself and dump the source.

The <IMG src=" bit refers to the attachment, but there are conventions
to follow, which I did work out once, but it was a bit to trashy in the
end to be worth finishing properly hence I have no code to offer.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ip address of client
Next Topic: Islandnet.com dropping support for PHP4
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 08:15:38 GMT 2024

Total time taken to generate the page: 0.04390 seconds