coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: b2bwide on January 20, 2008, 01:38:01 AM

Title: custom header to sendmail for webhost demand
Post by: b2bwide 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.
Title: Re: custom header to sendmail for webhost demand
Post by: b2bwide on January 23, 2008, 09:06:20 PM
Er... won't you mind some bounce?
Title: Re: custom header to sendmail for webhost demand
Post by: Joachim Müller on January 24, 2008, 08:08:33 AM
You'll probably have to modify include/mailer.inc.php
Title: Re: custom header to sendmail for webhost demand
Post by: b2bwide 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?
Title: Re: custom header to sendmail for webhost demand
Post by: b2bwide on January 24, 2008, 09:12:25 PM
Quote from: b2bwide 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?
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)
$mail = new PHPmailer();
add after
$mail->AddCustomHeader("customID_text_as_host_wanted");
save
upload ;)

Thank you, once again. Problem solved!
Title: Re: custom header to sendmail for webhost demand
Post by: Joachim Müller 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.
Title: Re: custom header to sendmail for webhost demand
Post by: b2bwide 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 (http://phpbb.hu). Yet I see you have some (maybe better to say many) Hungarian visitors, too, I link it in. Thanks for asking ;)
Title: Re: custom header to sendmail for webhost demand
Post by: b2bwide 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 :)