Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

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.

Modification of the wiki's documentation

Featured Replies

In the URL "http://wiki.uniformserver.com/index.php/PHP_mail_function" well written by "Ric", there is a problem. The php code of mail.php should be:


"
.../...
// Retrieve the data form
$email = $ _ POST ['email'];
$subject = $ _ POST ['subject'];
$message = $ _ POST ['message'];
$headers = 'From:
may.be@laposte.net."\ r \ n". <--(!) added line
'Reply-To: may.be@laposte.net."\ r \ n".
'X-Mailer: PHP /'.phpversion();


// Check if a $ _POST value exists
// If not use defaults

if (empty ($ _ POST ['email'])) {
.../...

"

Indeed, without the php function @mail's parameter named $headers, many webmails respond with an smtp error. Here's an excerpt in the debug.log of fake sendmail for Windows:

.../...

DATA >>
ipsum etc. <EOL>
. <EOL>
>> 550 5.5.0 Service refused, please try later.
>> LPN105_510 <EOL>
>> Disconnecting from smtp.laposte.net:25

 

 

Best regards.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

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.