Page 1 of 1

Email-Kontakt-Formular ohne | Email Contact Form w/o From:

Posted: Sun 17. Apr 2005, 20:28
by ednong
English Translation at the bottom
---
Hallo,
ich nutze das neue Email-Kontakt-Formular. Ich weiß, wie ich mir eins kreiere und kann es auch absenden.

Das Problem: Wenn ich die Mail erhalte, ist das From:-Feld leer, wenn ich phpmail in den Konfigs einstelle bzw. es ist der Name des POP3-Users drin (bspw. cc5678-phpw) wenn ich SMTP mit Auth nutze. Ich würde gerne phpmail als Mailer nutzen, weiß jedoch nicht, wie ich da etwas in das From:-Feld bekomme.

Irgendjemand eine Idee?

Info: Ich nutze phpWCMS 1.2.1 und Shared Hosting, also ein Webhostingpaket. Details zum Server unter http://phpinfo.gnon.info/

danke
ed

-----

Hello,

I'm using the new email contact form. I can create a form and it works.

My problem: when I set the mailer to phpmail (mail) in the settings (conf.inc.php), the I get an empty From: field in the email. If I'm using SMTP with Auth I get the user name of the POP3 account. So I want to use the phpmail version, but I haven't any idea to get an sender into the From: field. Is anyone here who has an idea?

I'm using shared hosting and phpwcms version 1.2.1 More details about the server: http://phpinfo.gnon.info/

thanks
ed

Posted: Sun 17. Apr 2005, 20:41
by pico
Hi

your conf.inc.php should look like this:

Code: Select all

$phpwcms['SMTP_FROM_EMAIL']   = 'info@yourdomain.de';
$phpwcms['SMTP_FROM_NAME']    = 'Absendername im Klartext';
$phpwcms['SMTP_HOST']         = 'localhost';
$phpwcms['SMTP_PORT']         = 25;
$phpwcms['SMTP_MAILER']       = 'mail';
$phpwcms['SMTP_AUTH']         = 0;
$phpwcms['SMTP_USER']         = 'info@yourdomain.de';
$phpwcms['SMTP_PASS']         = 'pass';

No changes -- keine Änderung

Posted: Sun 17. Apr 2005, 22:51
by ednong
Hi pico,
pico wrote:Hi

your conf.inc.php should look like this:

Code: Select all

$phpwcms['SMTP_FROM_EMAIL']   = 'info@yourdomain.de';
$phpwcms['SMTP_FROM_NAME']    = 'Absendername im Klartext';
$phpwcms['SMTP_HOST']         = 'localhost';
$phpwcms['SMTP_PORT']         = 25;
$phpwcms['SMTP_MAILER']       = 'mail';
$phpwcms['SMTP_AUTH']         = 0;
$phpwcms['SMTP_USER']         = 'info@yourdomain.de';
$phpwcms['SMTP_PASS']         = 'pass';

yes, my config looks similar yours (originally from setup):

Code: Select all

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'my.em@il.de'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'real name'; // reply/from name
$phpwcms['SMTP_HOST']         = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = ''; // default SMTP password
But it doesn't work correctly – I got this field values in my email:

Code: Select all

Return-Path: <www-data@abcserver-14.de>
Delivered-To: web37p111@abcserver-14.de
Received: by abcserver-14.de (abcserver-14.de, from userid 33)
	id 97A498B04F8; Sun, 17 Apr 2005 22:41:59 +0200 (CEST)
To: receiver.of@mail.de
Subject: form2-test
Date: Sun, 17 Apr 2005 22:41:59 +0200
From: <== and this here is empty! - that is my problem
So - anyone here who has another idea?

---
Deutsch
Also: meine Konfig-Datei sieht fast so aus (orignal von der Einrichtung). Allerdings bekomme ich trotzdem eine Mail, die wie das unterste Zitat aussieht.

Hat noch irgendjemand eine andere Idee?

danke
ed

Posted: Mon 18. Apr 2005, 08:38
by pico
Hi

fill the Field phpwcms(SMTP_USER) :!:

Don't work / Funktioniert nicht

Posted: Mon 18. Apr 2005, 22:31
by ednong
Hi Pico,
leider funktioniert das nicht (richtig) – abhängig davon, was ich eingebe, bekomme ich unterschiedliche Ergebnisse:

-----
Hi Pico,
this does not works correct. Dependant of my entries I got some strange mails:

Code: Select all

entry for $phpwcms['SMTP_USER'] in conf.inc.php
From: mail sender in the email

'"Meine Firma Info" <info@meine-firma.de>';
From: "\"Meine Firma Info\" <info@meine-firma.de>" <"Meine Firma Info" <info@meine-firma.de>>

'Meine Firma Info <info@meine-firma.de>';
From: "Meine Firma Info <info@meine-firma.de>" <Meine Firma Info <info@meine-firma.de>>

'Meine Firma Info';
From: Meine Firma Info <"Meine Firma Info"@abcserver-111.de>

'info@meine-firma.de>';
From: "Info@meine-firma.de" <Info@meine-firma.de>

Das letzte ist ja halbwegs brauchbar, jedoch möchte ich folgendes im From:-Feld stehen haben:
From: "Meine Firma Info" <info@meine-firma.de>

Wie bekomme ich das hin?

--

The last one is useful, but not the thing I want to get. What I want to have in the From: field is:
From: "Meine Firma Info" <Info@meine-firma.de>

How I can get this?


danke/thanks
ednong

Posted: Tue 19. Apr 2005, 08:50
by pico
Hi

have checked this and this is in my Mailheader
Subject: Nachricht von http://www.simondigital.de
Date: Tue, 19 Apr 2005 08:36:33 +0200
From: Simondigital <info@simondigital.de>
Message-ID: <2f5f
from this in conf.inc

Code: Select all

$phpwcms['SMTP_FROM_EMAIL']   = 'info@simondigital.de';
$phpwcms['SMTP_FROM_NAME']    = 'Simondigital';
$phpwcms['SMTP_HOST']         = 'localhost';
$phpwcms['SMTP_PORT']         = 25;
$phpwcms['SMTP_MAILER']       = 'mail';
$phpwcms['SMTP_AUTH']         = 0;
$phpwcms['SMTP_USER']         = 'info@simondigital.de';
$phpwcms['SMTP_PASS']         = 'pass';
:?:

Does not works | Funktioniert noch nicht

Posted: Tue 19. Apr 2005, 18:09
by ednong
Hi Pico,
pico wrote: have checked this and this is in my Mailheader
Subject: Nachricht von http://www.simondigital.de
Date: Tue, 19 Apr 2005 08:36:33 +0200
From: Simondigital <info@simondigital.de>
Message-ID: <2f5f
from this in conf.inc

Code: Select all

$phpwcms['SMTP_FROM_EMAIL']   = 'info@simondigital.de';
$phpwcms['SMTP_FROM_NAME']    = 'Simondigital';
$phpwcms['SMTP_HOST']         = 'localhost';
$phpwcms['SMTP_PORT']         = 25;
$phpwcms['SMTP_MAILER']       = 'mail';
$phpwcms['SMTP_AUTH']         = 0;
$phpwcms['SMTP_USER']         = 'info@simondigital.de';
$phpwcms['SMTP_PASS']         = 'pass';
:?:
this does not works for me. I have tried out the following and get the following mail:

Anybody an idea how I get "From: Meine Firma Info <info@meine-firma.de>"? Could this be some things on my server (look above for phpinfo)?

---
dies funktioniert leider nicht so bei mir. Ich habe das noch mal expliziet ausprobiert und bekomme nur folgendes heraus:

Hat vielleicht noch irgendjemand ne Idee, wie ich es hinbekomme, das From:-Feld so aussehen zu lassen: "From: Meine Firma Info <info@meine-firma.de>"? Könnte das vielleicht mit den Einstellungen des Servers zusammenhängen (Link zur phpinfo weiter oben)?

Code: Select all

from conf.inc.php
// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'info@meine-firma.de'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'MEINE-FIRMA-Info'; // reply/from name
$phpwcms['SMTP_HOST']         = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = 'info@MEINE-firma.de'; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = ''; // default SMTP password
and the mail header I got
From: "info@MEINE-firma.de" <info@MEINE-firma.de>
Look for the capitals. | Achtet auch auf die Groß-/Kleinschreibung.

gruss/thanks
ednong

Posted: Tue 19. Apr 2005, 19:02
by pico
:?:

Niemand ne Idee? Nobody any idea?

Posted: Wed 20. Apr 2005, 23:27
by ednong
Hi,
hat niemand ne Idee, wie ich den Mailabsender so wie gewünscht hinbekomme? Oder hab ich das zu kompliziert ausgedrück?

Gewünscht wird ein Absender in der From:-Zeile, der so aussehen soll:

---

Hi,
nobody here who can talk me how it works like I wish? Or was it to complicated written from me?

I want to get a sender in the From: field like this:
From: "Meine Firma Info" <info@meine-firma.de>
gruss/sincerely
ednong