March 21, 2010, 03:30:33 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: cpg1.4.26 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.4.25 or older update to this latest version as soon as possible.
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: need to change email ecard to email attachment  (Read 7602 times)
0 Members and 1 Guest are viewing this topic.
diveboy Topic starter
Coppermine newbie

Posts: 2


« on: October 02, 2003, 10: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
***
Gender: Male
Posts: 268


WWW
« Reply #1 on: October 05, 2003, 07: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:
// 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 Topic starter
Coppermine newbie

Posts: 2


« Reply #2 on: October 05, 2003, 02: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

Posts: 1


« Reply #3 on: January 26, 2007, 10:50:54 pm »

has anyone else done this or had any luck?
Logged
Joachim Müller
Administrator
*****
Gender: Male
Germany Germany

Posts: 46240


aka "GauGau"


WWW
« Reply #4 on: January 27, 2007, 03: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
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.053 seconds with 15 queries.