Skip to main content
  • X Twitter
  • youtube
Home
Drupal 4U
Built for AI. Powered by Drupal.
  • 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
6

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
6
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Us

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

Contact Us

We aim to reply the latest within 48h.

Drupal 4U: Built for AI. Powered by Drupal.

We are a group of Drupal designers, developers and webmasters. We are Drupal experts! We provide comprehensive services that go beyond traditional web development, focusing on how AI understands, interprets, and cites your content. With our deep expertise in Drupal's architecture, we build the intelligent core of your digital presence, ensuring your brand remains authoritative and visible in a world where AI is the primary gatekeeper of information. Partner with us and let's future-proof your digital strategy together.

  • X Twitter
  • youtube

Drupal Services

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

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

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

Footer menu

  • Contact
Home
Drupal 4U
Built for AI. Powered by Drupal.
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element