How to change From' email header
dtuser - May 22, 2009 - 05:43
| Project: | |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
"From: email" header reflects host email and I can't change it. I made changes in mail.inc file but its not working at all.
$default_from = "myname@mycompany.com";
if ($default_from) {
$defaults['Reply-To'] = $defaults['Sender'] = $defaults['Return-Path'] = $defaults['Errors-To'] = $default_from;
$defaults['From'] = "From: "myname@mycompany.com";
}Also i have uploaded a normal standalone .php file with the php mail function to my site and it is working perfect. Problem is with the mails which was sending from my Drupal core. Can anyone help me in solving this issue.

#1