Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mailto form in html

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok this is what I have html wise:



and this is my sendemail() function in javascript:



why won't this work? I don't see why it wouldn't. It looks fine to me lol
but then again I'm a noob.

Thanks,

Justin Fox
[ December 28, 2007: Message edited by: Bear Bibeault ]
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, the thing is working now, i just didnt put '()' after submit in my version of the code. but that just brings up outlook.

I dont want that, I just want the thing to email me directly.

Is this possible?

Thanks,

Justin Fox
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not possible. All the mailto pseudo-url does is to launch your default mail app.

To send email you need to have something on the server side do it for you.
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
:/ php it is i guess...
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i have the mail form working now, I used ajax though, so I don't have to refresh the page.

when I input my message, when I get the email, my returns don't apply.

for example: if in the email "form" I type:

hello.
my name.
is justin.

when I get the email it shows up like this.

hello.my name.is justin.

how do I go about fixing this?

Thanks,

Justin Fox
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked into the nl2br() function, but that doesnt seem to work either..
any direction would be nice

Thanks,

Justin Fox
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this.

You are posting to JavaRanch not phpRanch, and on a Saturday, and you expect immediate responses?

First thing I'd do is to see how the line breaks from the text area being delivered to the server.
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's funny, I never said I wanted an immediate response...

And PHP is an internet based programming language which you use with and to make ajax work. So I believe these questions are totally appropriate.

And again, Thank for the advice.

Justin Fox
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At no point did I say inappropriate... it's just that you are unlikely to get quick responses on a topic that is not core to this site. Your post a few back sounded kind of pushy; if that was not your intention, no issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic