Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal Howtos
  • Drupal Themes
  • X Twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact

Breadcrumb

  1. Home
  2. HowTos
  3. "From address" doesn't work in Forward Module. How to solve the issue?

"From address" doesn't work in Forward Module. How to solve the issue?

HowTos
June 18, 2013
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
5

If the "From address" is left blank the site email address is used instead of the address entered by the user. Thus if someone forwards a page from your website, the email received will show the site e-mail address in the from: field. This howto shows you how to solve the issue quickly.

Solution

Edit the forward module

Go to sites/all/modules/forward and use and editor to open forward.module

Search, change and save

Search for the following instance:

$from = variable_get('forward_sender_address', '');
  if (empty($from)) {
    $from = variable_get('site_mail', '');
  }

Replace it with:

$from = variable_get('forward_sender_address', '');
  if (empty($from)) {
    $from = $form_state['values']['email'];
  }

Save the file. Now the module should work as indicated. i.e. the email entered in the form will be shown in the from: field.

Drupal Forward Module
Troubleshooting

Read more articles

Newer
How to display search results as views
Older
How to disable the breadcrumb or menu trail using Drupal 7?
  • Log in to post comments
Profile picture for user drupal
drupal
5
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

Get in touch for questions and our Drupal development, design and SEO services.

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • X Twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal Migration

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2025, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element