Toon posts:

Fout Afzender in Webmail's

Pagina: 1
Acties:
  • 43 views sinds 30-01-2008

Verwijderd

Topicstarter
Als ik een webmail verstuur krijgt die naam ( Afzender ) ---> ( WWW daemon apache )
Heb al in me script gekeken maar kan er niks in terug vinden.
en ook al bij me provider van de website.
Onderwerp blijft staan op ( Geen )


Kan iemnd mij vertellen wat de oplossing hier voor is.
;) ;)

Verwijderd

misschien eens je code posten ?
Maar niet in de lange lappen die je in je vorige topic poste... (= verwijzing enzo.. naar source)
ik hoop trouwens dat je nu bent overgestapt op iets veiligers?

[ Voor 10% gewijzigd door Verwijderd op 04-12-2005 02:19 ]


Verwijderd

Topicstarter
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/perl -t
# Yet another bloody mail CGI (C)1999-2001 Deekoo L.
# Version 0.10.
# License: GPL version 2.0.
#
# Configuration: $recipient is the email address to send mail to.
# Email.

$recipient=Email;

# $sendmail: Email.
$sendmail='/usr/sbin/sendmail';

# End configuration

use CGI;

# Now, prevent this from Gomping RAM.
$CGI::DISABLE_UPLOADS=1;
# Note that this limits max data size to 1meg.
$CGI::POST_MAX=1_048_000;

$query = new CGI;

@names = $query->param;

$desturl = $query->param('_desturl');

delete($ENV{PATH});

if (!$desturl) {
    print "Content-type: text/plain\n\n";
    $headerprinted=1;
}

open(MAIL,"|$sendmail -i -- $recipient") || &error_sending_mail;

print MAIL "Submitted on ".`date`;
print MAIL "From: $ENV{REMOTE_HOST} \\[$ENV{REMOTE_ADDR}\]\n";
print MAIL "using $ENV{HTTP_USER_AGENT}\n";
print MAIL "Referring page: $ENV{HTTP_REFERER}\n\n";


foreach $name (@names) {
    if ($name ne '_desturl') {
        $parm = $query->param($name);
        print MAIL "$name: $parm\n\n";
    }
}

close(MAIL);

if ($?) {
  &error_sending_mail();
}


if (!$desturl) {
    if (!$headerprinted) {
        print "Content-type: text/plain\n\n";
        $headerprinted=1;
    }
    print "U bericht is verzonden.\n\n";
} else {
    print $query->redirect($desturl);
}

exit;

sub error_sending_mail
{
    if (!$headerprinted) {
        print "Content-type: text/plain\n\n";
        $headerprinted=1;
    }
    print "Error sending mail.  Your data has not been submitted.\n";
    print "Please contact the webmeistriss for this site and let\n";
    print "them know that the script is narbling.\n";
    die "Error sending mail.\n";
}


:D :D :D Sorry about that ;)

[ Voor 9% gewijzigd door Verwijderd op 04-12-2005 02:23 ]


  • NMe
  • Registratie: Februari 2004
  • Laatst online: 15-04 22:07

NMe

Quia Ego Sic Dico.

Sorry, maar we geven hier in Programming & Webscripting geen support op scripts van derden. Mail de maker van het script maar, of download/schrijf een script dat wel werkt. :)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Dit topic is gesloten.