Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Variables in an mail-content
Old 04-13-2005, 04:30 PM Variables in an mail-content
Junior Talker

Posts: 1
Trades: 0
My goal is to send an email with an variable salutation.

These points are working:
1. Load the content from the db and save it in a variable.
2. Post the content with echo on the screen.
3. Send the content with the mail()function.
4. Display a variable called $salutation on the screen.

But I won't get the right output at the screen or per mail, if I save the variable $salutation directly in the html source (db).

I will only get the following result:

$salutation,

blabla

But I want to have this result:

Dear John,

blabla

Do you have an idea?

Thx
Frutilla
Frutilla is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-13-2005, 06:30 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
If you put it into the database, it gets treated as a string, and won't be expanded as a variable. Probably best way round this is to put into the database some special string like <<salutation>>, or just anything that you are unlikely to type elsewhere, then your script can search for this and replace it with the greeting of your choice.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to Variables in an mail-content
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28803 seconds with 12 queries