Author Topic: new postcard email subject  (Read 5403 times)

0 Members and 1 Guest are viewing this topic.

Offline Tusnelda99

  • Newbie
  • *
  • Posts: 10
    • View Profile
new postcard email subject
« on: April 04, 2005, 02:57:03 PM »
Hello all,

i would change the $lang['send_postcard_emailsubject'] in lang/<deutsch,english,..>/main.php
from "An eCard for you!" to
"An eCard from {sender_name} for you!"

but when i input this in main.php an i send a postcard, the {..} wouldn´t replaced with the sender name??!

Could anybody help me what code i must also change?

Thanks Tusnelda99

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: new postcard email subject
« Reply #1 on: April 11, 2005, 03:56:55 AM »
Change send_postcard_emailsubject to "An eCard for you from " and change this line in postcards.php
Code: [Select]
    $site_email->set_subject($lang['send_postcard_emailsubject']);To this:
Code: [Select]
    $site_email->set_subject($lang['send_postcard_emailsubject'].stripslashes($sender_name)." <".stripslashes($sender_email).">");
The subject should now read:
Code: [Select]
An eCard for you from NAME <nobody@example.com>

Offline surferboy

  • Full Member
  • ***
  • Posts: 142
    • View Profile
More on postcard email - user_name
« Reply #2 on: April 21, 2010, 07:11:34 PM »
Hi -

Found this topic in the forum.  Using v1.7.7

Similar to the other post here, I would like to modify the postcard email format.  I found the postcard_message.html file and made the changes but when I replace {sender_name} in the body with {user_name} the db name is not substituted. Instead it just says "user_name."

I had a look in postcards.php file but the code line I found for the body of the postcard email is:
$site_email->set_body("postcard_message", $config['language_dir']);   

and I don't know what to add to make system pull the user_name from the 4images database.

Thanks,

Brian