Avatar

No Email-contact (General)

by Micha ⌂, Tuesday, March 31, 2009, 19:51 (5508 days ago)

Hello,

my provider (goneo.de) disabled the mail-function for emails, which are not registered by a goneo-account. Therefore, I'd like to disable the contact-formular. How can I do it?

Regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Avatar

No Email-contact

by Alex ⌂, Wednesday, April 01, 2009, 20:26 (5507 days ago) @ Micha

Hi Micha,

the mail() function is required in several parts of the script (registration, activation, password reset etc.) so it doesn't really work if this function is disabled.

Alex

Avatar

No Email-contact

by Micha ⌂, Wednesday, April 01, 2009, 20:52 (5507 days ago) @ Alex

Hi Alex,

the mail() function is required in several parts of the script (registration, activation, password reset etc.)

Yes, but here, I define the "from-mail" in the settings. I mean only the feedback formular (/index.php?mode=contact). Here, the user defines the "from-mail". I only want disabled this function. You know what I mean?

Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Avatar

No Email-contact

by Alex ⌂, Thursday, April 02, 2009, 07:17 (5506 days ago) @ Micha

Yes, but here, I define the "from-mail" in the settings.

OK, I see! What about setting the forum e-mail as From: and the users's e-mail as Reply-to:?

To do so, replace ...

else
 {
  $headers  = "From: " . $from . MAIL_HEADER_SEPARATOR;
 }

... by ...

else
 {
  $headers = "From: " . $settings['forum_email'] . MAIL_HEADER_SEPARATOR;
  $headers .= "Reply-to: " . $from . MAIL_HEADER_SEPARATOR;
 }

in includes/functions.inc.php, about line 1981 (untested!).

Alex

Avatar

No Email-contact

by Micha ⌂, Thursday, April 02, 2009, 18:07 (5506 days ago) @ Alex

Hi,

What about setting the forum e-mail as From: and the users's e-mail as Reply-to:?

Sounds good!

I try it out. Goneo changes the mail-settings as of 15.02.2009.

regards Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Avatar

No Email-contact

by Micha ⌂, Saturday, April 18, 2009, 19:06 (5490 days ago) @ Alex

Hi,

I have to set a parameter:

Example from my provider:

 
<?php
 
/* Empfänger */
$empfaenger = 'paul-mueller@paul-muellers-homepage.de';
 
/* Absender */
$absender = 'absender@ihre-domain-bei-goneo.de';
 
/* Betreff */
$subject = 'Testmail mit PHP';
 
/* Nachricht */
$message = 'Hallo Welt!';
 
/* Baut Header der Mail zusammen */
$header = ("From: " . $absender . "n");
$header .= ("Reply-To: " . $absender . "n");
$header .= ("Return-Path: " . $absender . "n");
$header .= ("X-Mailer: PHP/" . phpversion() . "n");
$header .= ("X-Sender-IP: " . $REMOTE_ADDR . "n");
$header .= ("Content-type: text/htmln");
 
/* Verschicken der Mail */
mail($empfaenger, $subject, $message, $header, "-f muss-existieren@ihre-domain-bei-goneo.de");
 
echo "Die E-Mail wurde versendet.";
 
?>
 

regards Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

RSS Feed of thread