Connecting Tech Pros Worldwide Help | Site Map

Post Form Data From HTML Mail To Web Browser

chunk1978's Avatar
Familiar Sight
 
Join Date: Jan 2007
Posts: 226
#1: May 18 '07
hi... i've written a mail script that sends and HTML mail to myself... the HTML mail is made up of posted php data from a user, as well as a form for myself to fill out... but i'm having a problem with posting this PHP form data from the HTML Email in my email browser (Safari Mail) to the my internet browser...

everything works great except for the fact that nothing get's posted to the webpage from my HTML email...

i've tested the code from the HTML Mail in the webbrowser, and it works from Browser to Browser... but why isn't it working from HTML Email to Browser?

any ideas?
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#2: May 18 '07

re: Post Form Data From HTML Mail To Web Browser


Quote:

Originally Posted by chunk1978

everything works great except for the fact that nothing get's posted to the webpage from my HTML email...

My guess is that this is a security feature built into email applications to discourage phishing.

Imagine how naive Users are not to check the location bar before logging into a website they got to by clicking on a link in an email.

How hard is it to believe that those same Users might just be unwitting enough to try to "login into their bank's website" from an anonymous email that looks official?

My recommendation would be to create a UUID for that User's account and put it in a link in the email.

Quote:

Originally Posted by Your Mailer Script

<p>Welcome to the site! To get started, activate your account by going to the following URL:</p>

<p>http:// mysite.com/activate.php?uuid=da63fb69aeb03c776bd23e91e2c1cb3d f30135d3</p>

In this case, activate.php would contain the form, custom-tailored to that User's account.
chunk1978's Avatar
Familiar Sight
 
Join Date: Jan 2007
Posts: 226
#3: May 19 '07

re: Post Form Data From HTML Mail To Web Browser


Quote:

Originally Posted by pbmods

My guess is that this is a security feature built into email applications to discourage phishing.

Imagine how naive Users are not to check the location bar before logging into a website they got to by clicking on a link in an email.

How hard is it to believe that those same Users might just be unwitting enough to try to "login into their bank's website" from an anonymous email that looks official?

My recommendation would be to create a UUID for that User's account and put it in a link in the email.



In this case, activate.php would contain the form, custom-tailored to that User's account.

hey pbmods... thanks for the reply... i suppose your right about it being a security issue... it works when using webmail systems like Gmail, as it will prompt an alert stating "you are about to send information over the internet, do you want to continue?"... it's just unfortunate (i guess) that Apple Mail will not display this alert, and just ignores any PHP post data all together...

it's not really a huge deal for me... i just had to design a small form for myself to fill out manually instead... it would have been nice to have a fully integrated automation system, but a small form isn't so bad... and i suppose it's all for the best to keep emails more secure...
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#4: May 19 '07

re: Post Form Data From HTML Mail To Web Browser


Quote:

Originally Posted by chunk1978

it's just unfortunate (i guess) that Apple Mail will not display this alert, and just ignores any PHP post data all together...

Hm. Actually, before giving up on this entirely.... What if you changed the method to GET?
chunk1978's Avatar
Familiar Sight
 
Join Date: Jan 2007
Posts: 226
#5: May 19 '07

re: Post Form Data From HTML Mail To Web Browser


Quote:

Originally Posted by pbmods

Hm. Actually, before giving up on this entirely.... What if you changed the method to GET?

yeah i tried that... i changed every possible option of a form submission... Apple Mail just will not post anything...

i've also discovered that Apple Mail will not use javascript in HTML email also... strange by true...
Reply