[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
 OpenForum.dk • Vis emne - Fornavn i nyhedsbrev

Fornavn i nyhedsbrev

Forslag til danske aktiviteter.

Redaktør: Redaktionen

Fornavn i nyhedsbrev

Indlægaf bilskov » 2006-08-28 22:10

Hej.

Jeg kunne godt tænke mig at have fornavnet med i nyhedsbrevet for at gøre det lidt mere personligt. Jeg gil altså gerne have at man kan trække fornavnet fra databasen og skrive kære fonavn, eller Hej fornavn.

Jeg kan se at newsletter.php allerede trækker fornavn og efternanv når den sender emailen, men hvordan får jeg det ind i teksten.
bilskov
Novice
Novice
 
Indlæg: 7
Tilmeldt: 2005-11-7 19:49
Geografisk sted: Jylland

Indlægaf ladylone » 2006-08-29 21:03

Hej bilskov

Forslag:

Prøv med følgende ændring i admin/includes/modules/newsletters/newsletter.php

Tilføj det grønne til linjen:

$mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title, 'Hej ' . $mail['customers_firstname'] . "\n");

Lavede en hurtig tester og det virkede hos mig, men jeg ved ikke om det kan være afhængig af mail-opsætning m.v.
Hvis det skal være helt rigtigt burde "Hej" nok laves som en variabel og puttes i en tilhørende sprogfil - men det kan du jo selv rode med, hvis det virker.
Og hvis ikke det virker ........ Beklager.
MVH
Claus
ladylone
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 851
Tilmeldt: 2006-02-25 17:24
Geografisk sted: Hillerød

Indlægaf kirneh » 2006-08-30 18:55

Jeg hader personligt at få en autogenereret mail med "Hej <<mit navn>>"
Syntes det virker helt vildt kunstigt.

Undskyld min bemærkning, syntes bare jeg ville skrive hvordan jeg reagere på en "personlig" mail som jeg udemærket ved er massegenereret :-)
kirneh
Godt igang
Godt igang
 
Indlæg: 155
Tilmeldt: 2006-02-15 10:36

Indlægaf whc » 2006-09-21 11:55

Brugeravatar
whc
Godt igang
Godt igang
 
Indlæg: 47
Tilmeldt: 2006-02-20 16:33

Indlægaf ladylone » 2006-09-22 19:38

Hej whc

Hvis det er de mail du sender fra admin, mener jeg du kan gøre det samme ved følgende:

catalog/admin/orders.php (linje ca. 50)

...
...
// starten af følgende linje kan eksempelvis ændres
// $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

// til:
$email = 'Hej ' . $check_status['customers_name'] . "\n\n" . STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
...
...

Det giver "Hej fornavn + efternavn" i begyndelse af alle de mails, der sendes fra admin/orders.php.
MVH
Claus
ladylone
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 851
Tilmeldt: 2006-02-25 17:24
Geografisk sted: Hillerød


Tilbage til Forslag og ønsker til DK

Hvem er online

Brugere der læser dette forum: Ingen tilmeldte og 5 gæster

cron