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

Home » Imported messages » comp.lang.php » html contact email
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: html contact email [message #182031 is a reply to message #182025] Sun, 30 June 2013 01:34 Go to previous messageGo to previous message
Richard Damon is currently offline  Richard Damon
Messages: 58
Registered: August 2011
Karma:
Member
On 6/29/13 6:37 PM, Twayne wrote:

> Is there a way to format php sendmail without it being in a form just
> a simple email address in an
> anchor? Thanks,

To send an email with php, you need to invoke a php script with the data
the script needs to build the email. It doesn't require a "form", but
you do need some way to get the needed info from the user (forms are
just an easy way to get data).

Invoking the script could be done by directing to a page, or by having a
client side script make a background request to the script (like using
AJAX).

The big difference between a mailto link and a php script request is
that the mail to link will assume that there is a proper mail client
configured on the client, and that it will just need information like
the destination address, and (maybe) subject. It will be assumed that it
already knows the users email address and how to send the email from the
client.

The php script on the other hand, likely doesn't need the destination
address and such, but likely DOES need the information about the user
(like their email address, and maybe what to send in the email). This
information will normally come from a form, but it is possible that it
could come from some other source.
[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
Previous Topic: PHPMailer from and mesg-id bug
Next Topic: Updating old PHP code
Goto Forum:
  

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

Current Time: Thu Nov 28 00:44:47 GMT 2024

Total time taken to generate the page: 0.04044 seconds