![]() |
Alexey admin 1/26/2007 |
Stephan, |
D
|
dsaunier 1/26/2007 |
Making a wild guess here, but I'd say you mean email supposedly sent from a phprunner-based application appear as "nobody" to the person receiving them ? |
L
|
larsonsc 1/26/2007 |
I have a couple form mailers that I use and in order to control the "From" address that comes through on an email, I set it in a variable. $mailfrom = 'address@domain.com';
'From: '.$mailfrom
|
M
|
mmponline author 1/27/2007 |
I have no idea what is Nobody you talking about. Please clarify. If I use an event in PHPRunner to send an e-mail after add or edit, the receiveden a e-mail has a "nobody" in the from line. I would like this to say from: Eg. Stephan or even a e-mail address. When I click reply, it puts in the following address pointing to my server, in stead of to the administrative e-mail address: 'From: '.$mailfrom
|
L
|
larsonsc 1/27/2007 |
That code would go in an event, see below for an example: if (*whatever criteria you want to check*) { |
L
|
larsonsc 1/27/2007 |
...When I click reply, it puts in the following address pointing to my server, in stead of to the administrative e-mail address: nobody@dedi50a.your-server.co.za
|
M
|
mmponline author 1/30/2007 |
if (whatever criteria you want to check) { $email = "email@email.com"; $mailfrom = "you@yourdomain.com"; $subject = "Thanks for doing something that triggered an email"; $message = "Glad to have you on our site" . "\n\n"; mail($email, $subject, $message, 'From: '.$mailfrom); }
|
L
|
larsonsc 1/30/2007 |
Now more challenges:
|
![]() |
Sergey Kornilov admin 1/30/2007 |
Stephan, |
M
|
mmponline author 1/30/2007 |
I got this working with a lot of trial and error. But it works... (It also resolves http://www.asprunner.com/forums/index.php?showtopic=4463 ) function BeforeEdit(&$values, $where)
|
L
|
larsonsc 1/30/2007 |
Nice work Stephan. Glad you found a solution. |