Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[sendmail+php+apache] Changer from www-data en toto (resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Wed Feb 08, 2006 7:55 pm    Post subject: [sendmail+php+apache] Changer from www-data en toto (resolu) Reply with quote

Bonsoir à tous ..

Voila je suis un peu paumé car j'ai posé un apache avec un script php qui envoie un mail de confirmation d'enregistrement avec sendmail


Mais le champ from de ce mail est www-data sois l'user pour apache ..

J'imagine qu'il est tout a fait possible de changer le champ from mais la configuration de sendmail me parait obscure ..

Une ame charitable saurait elle lever un coin du voile afin que la lumière jaillisse sur cet obscure configuration ?? :p

EDIT : je vais tacher de la refaire plus .. heuu compréhensible ?

Donc j'utilise un script php qui envoie un mail grace à sendmail ... hors le champ from du mail qui est envoyé contient le nom d'utilisateur www-data ...

Est il possible de modifier ce champ grace à un parametrage de sendmail ?


Last edited by dapsaille on Fri Feb 10, 2006 8:33 am; edited 1 time in total
Back to top
View user's profile Send private message
blasserre
Veteran
Veteran


Joined: 10 Feb 2004
Posts: 1362
Location: Lille, Vlaanderen

PostPosted: Thu Feb 09, 2006 9:13 pm    Post subject: Reply with quote

la fonction mail() prend un paramètre header (le 4ème), l'utiliser comme ceci :
Code:
mail($to,$subject,$message,"From: $from\n")

devrait te permettre d'arriver à tes fins
_________________
benj

technicien professionnel, ascendant winner
Back to top
View user's profile Send private message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Fri Feb 10, 2006 8:31 am    Post subject: Reply with quote

blasserre wrote:
la fonction mail() prend un paramètre header (le 4ème), l'utiliser comme ceci :
Code:
mail($to,$subject,$message,"From: $from\n")

devrait te permettre d'arriver à tes fins



Merci à toi ^^
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum