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: custom header to sendmail for webhost demand  (Read 8393 times)

0 Members and 1 Guest are viewing this topic.

b2bwide

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
custom header to sendmail for webhost demand
« on: January 20, 2008, 01:38:01 am »

Hi,

my site is at a free web host who demands (for anti-spam and security reasons) a personal code as sendmail's 4th(?) (additional) parameter. Without this code outgoing e-mails are blocked. I have the code, but I don't know where to put in. Please write me which file needs an edit and where? I learn some programming, but completely new to php. Also searched the docs and this site for some days...

regards,

Born 2B Wide
http://www.freeweb.hu/b2bwide/keptar enter as 'tester' and use coppermine for pwd.
« Last Edit: January 25, 2008, 09:23:22 am by Joachim Müller »
Logged

b2bwide

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: custom header to sendmail for webhost demand
« Reply #1 on: January 23, 2008, 09:06:20 pm »

Er... won't you mind some bounce?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: custom header to sendmail for webhost demand
« Reply #2 on: January 24, 2008, 08:08:33 am »

You'll probably have to modify include/mailer.inc.php
Logged

b2bwide

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: custom header to sendmail for webhost demand
« Reply #3 on: January 24, 2008, 08:32:09 pm »

Vielen Dank, Joachim - but as I wrote, I am new to php and I don't want to mix the things up. Could you give me some more clue? What to look for in that file?
Logged

b2bwide

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: custom header to sendmail for webhost demand
« Reply #4 on: January 24, 2008, 09:12:25 pm »

Vielen Dank, Joachim - but as I wrote, I am new to php and I don't want to mix the things up. Could you give me some more clue? What to look for in that file?
Sorry, I do not know how can I edit my last post...
Meanwhile I received a solution on a different forum, where I also posted this problem. The right and working solution is:

find include/mailer.inc.php
find (around line 59)
Code: [Select]
$mail = new PHPmailer();add after
Code: [Select]
$mail->AddCustomHeader("customID_text_as_host_wanted");save
upload ;)

Thank you, once again. Problem solved!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: custom header to sendmail for webhost demand
« Reply #5 on: January 25, 2008, 09:24:14 am »

Thanks for returning and sharing your solution. You might want to post a link to the thread where you git your answer.
Logged

b2bwide

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: custom header to sendmail for webhost demand
« Reply #6 on: January 29, 2008, 09:55:31 pm »

To be frank, it will be few people's benefit, because this forum is in Hungarian only. This is the Hungarian phpBB Support Forum. Yet I see you have some (maybe better to say many) Hungarian visitors, too, I link it in. Thanks for asking ;)
Logged

b2bwide

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: custom header to sendmail for webhost demand
« Reply #7 on: January 29, 2008, 10:05:10 pm »

Er... sorry, you've asked for the topic, not the forum... There was a syntax error (a missing semicolon) in the code there which is corrected here, and there was no more useful info there. If you want to delete this and previous "ad", I understand it, but they are so helpful in general that I wanted to tell it to the world :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.