Solved

php question

Posted on 2006-06-09
3
225 Views
Last Modified: 2010-04-17
I do a lot of email advertising. I am looking for a php code that I can put into an email so that when it is opened by the user it will be a web page with the advertising. I have been sending html emails with the advertising but they do not open the way I would like. I came across a code a while back, but forgeot where. So to sum thing up, all I want to put in an html email is this php code that will open my web page.
0
Comment
Question by:lavak
  • 2
3 Comments
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 16874591
lavak,

Won't work.  The contents of the email would run on the client's computer and PHP is server side code.  Even if their computer was set up to run PHP the email program's security settings would most likely, at least hopefully, prevent this.

You can try to use JavaScript, which is client-side code and supported by a number of email programs.  However it is common for users to disable it for them to have a program that will.  If the message does not look like you want then I recommend trying to fix the HTML, if possible, or provide a link to the HTML contents.  This link would be to your website and the page could use PHP, etc.

Sorry!  Let me know if you have any questions or need more information.

b0lsc0tt
0
 

Author Comment

by:lavak
ID: 16874737
when I get html mail from people...that is the actual advertising...how are these people doing this?
0
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 500 total points
ID: 16874937
What exactly are they doing?  Does the actual email contain ad images?  Is it the fact that the message is personalized but still in general advertising?

Viewing the source of the email message can give you an idea of the HTML code they are using.  Emails promoting a product can be personalized using a database and server side language to send the message.  The message itself still is just HTML or basic text but it was created with a script.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now