forum.coppermine-gallery.net

Support => Older/other versions => cpg1.1.X Support (standalone) => Topic started by: diveboy on October 02, 2003, 11:13:20 am

Title: need to change email ecard to email attachment
Post by: diveboy 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.
Title: need to change email ecard to email attachment
Post by: Zarsky 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.
Title: need to change email ecard to email attachment
Post by: diveboy 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.
Title: Re: need to change email ecard to email attachment
Post by: bammercole on January 26, 2007, 11:50:54 pm
has anyone else done this or had any luck?
Title: Re: need to change email ecard to email attachment
Post by: Joachim Müller 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.