custom header to sendmail for webhost demand custom header to sendmail for webhost demand
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

custom header to sendmail for webhost demand

Started by b2bwide, January 20, 2008, 01:38:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

b2bwide

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.

b2bwide


Joachim Müller

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

b2bwide

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?

b2bwide

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!

Joachim Müller

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

b2bwide

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 ;)

b2bwide

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 :)