Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Email Form , From Address

Featured Replies

Hi Guys,

 

Hopefully this will be something simple. Ive written a nice little contact form using php to process it, everything seems to be working brilliantly except for one little thing. When i receive an email from my form in outlook, the from field says "anonymous". When i open up the email the address is an anonymous@random-numbers.domain.com type. Is there anything i can put in my php script to correct this as i don't have access to my 'php.ini'.

 

Thanks in advance.

Add a from header... e.g

 

<?php
//From: Web Master <webmaster@example.com>

mail('me@mydomain.com', 'Test message', 'Hello World', 'From: Web Master <webmaster@example.com>');

?>

 

You can read up on RFC2822 standard mail headers at http://www.faqs.org/rfcs/rfc2822.html Section 3.6 Field definitions.

  • Author

Hi jock,

 

Thanks for the reply, i feel a little silly with this one because i managed to get it to work and it was such a simple thing.

 

'$from = "webmaster@domain.com"'

 

Completely missed that line. Maybe i should read a few books eh??

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.