Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: need to change email ecard to email attachment  (Read 13996 times)

0 Members and 1 Guest are viewing this topic.

diveboy

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
need to change email ecard to email attachment
« on: October 02, 2003, 11:13:20 am »

Hi all,

hoping someone has already done this one.

I need to change the email ecard function over to email the picture as attachment ?

anyone give me a clue as to what I have to change to get this going ?

Thanks in advance

Michael.
Logged

Zarsky

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 268
    • Zerr Family Website
need to change email ecard to email attachment
« Reply #1 on: October 05, 2003, 08:15:30 am »

This is a bit out of my league, but I can point you in the right direction:

Look at theme.php:

Code: [Select]
// HTML template for e-cards
$template_ecard = <<<EOT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
<p align="center"><a href="{VIEW_ECARD_TGT}"><b>{VIEW_ECARD_LNK}</b></a></p>
<table border="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td bgcolor="#000000">
      <table border="0" cellspacing="0" cellpadding="10" bgcolor="#ffffff">
        <tr>
          <td valign="top">
           <img src="{PIC_URL}" border="1" alt="" /><br />
          </td>
          <td valign="top" width="200" height="250">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" alt="" border="0" /></div>
            <br />
            <b><font face="arial" color="#000000" size="4">{GREETINGS}</font></b>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{MESSAGE}</font>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{SENDER_NAME}</font>
            (<a href="mailto:{SENDER_EMAIL}"><font face="arial" color="#000000" size="2">{SENDER_EMAIL}</font></a>)
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>
</body>
</html>
EOT;


and look in mailer.inc.php in the ./include dir.

If you know what you are doing with MIME types, etc...you should be able to figure this out.
Logged
Read the Online DOCs, FAQ, and SEARCH the board BEFORE posting questions for help.

diveboy

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
need to change email ecard to email attachment
« Reply #2 on: October 05, 2003, 03:12:55 pm »

Thanks for the response, I guess I'll learn mime types and once I got it working, I'll post the resulting code here for anyone else that needs it.

Michael.
Logged

bammercole

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: need to change email ecard to email attachment
« Reply #3 on: January 26, 2007, 11:50:54 pm »

has anyone else done this or had any luck?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: need to change email ecard to email attachment
« Reply #4 on: January 27, 2007, 04:25:26 pm »

Don't reply to threads in a sub-board that is totally outdated and unsupported. You probably don't have cpg1.1 anyway. Locking.
Logged
Pages: [1]   Go Up
 

Page created in 0.038 seconds with 18 queries.