httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ossenford" <a...@shomecom.com>
Subject Re: [users@httpd] Apache email address
Date Tue, 17 Jan 2006 23:35:55 GMT

----- Original Message ----- 
From: "Gerry Danen" <gdanen@gmail.com>
To: <users@httpd.apache.org>
Sent: Tuesday, January 17, 2006 3:35 PM
Subject: [users@httpd] Apache email address


When I use a php form to send email, an address called
apache@sv3.danen.org is used. Where would that be set?

--
Gerry
http://portal.danen.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
***************************************************************

Most likely that will be set within the php mail() function.  You can modify 
the headers as you see fit to change the from and reply to address.
I don't know all the details off the top of my head but if you take a look 
at http://us2.php.net/manual/en/ref.mail.php .
It has the php mail() functions attributes that you can add/modify.  The one 
you would be needing would be the headers string.
It seems that the headers string will need to be formatted differently 
depending on the mail server you are sending through (Qmail, Exchange, 
etc...)

If you are using a mailserver that is different than the webserver your form 
is hosted on and the mailserver uses authentication you might take a look at 
phpmailer.
http://phpmailer.sourceforge.net/  is a email transfer php class that 
supports smtp authentication.

I hope that is what you are after.
 something like
<?php
$headers  = "From: \"Your Server\"<Your Email Address@yourdomain.com>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"";
mail('myAddress@hotmail.com', 'Email with attachment from PHP', $message, 
$headers);
?>

hope this points you in the right direction

Sincerely,
Adam Ossenford 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message