Jump to content

Recommended Posts

Some way,

 

<?php
$to = "[email protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$from);
echo "Mail Sent.";
?> 

 

gives an error in WAMP:

SMTP server response: 530 SMTP authentication is required. in C:\wamp\www\mailer.php on line 7
Mail Sent. 

 

Anyone got an idea?

 

Thanks in advance,

Sincerly

Link to comment
https://forums.phpfreaks.com/topic/192797-configuring-mail/
Share on other sites

Some way,

 

<?php
$to = "[email protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$from);
echo "Mail Sent.";
?> 

 

gives an error in WAMP:

SMTP server response: 530 SMTP authentication is required. in C:\wamp\www\mailer.php on line 7
Mail Sent. 

 

Anyone got an idea?

 

Thanks in advance,

Sincerly

 

You can't run mail function on your local PC without a mail server. The package Wamp don't include the mail server, and the function will give you an error. You must configure it, or to try it on an outside server.

Link to comment
https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015640
Share on other sites

The error message indicates that there is a mail server installed and running.

 

The From: address must be a valid email address at the sending mail server to both get your mail server to accept and send the email and for receiving mail servers to accept it.

Link to comment
https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015642
Share on other sites

First of all: thanks a lot for your replies!

 

Further:

 

1)Valid: what does that exactly mean: if my gmail adresses do exist, could an error occur then?

 

2) Yes I tried Axigen, but the configuration wizard doesn't finish succesfully. It gives: 'failed to connect to cli server for some reason'.

 

3) Has anyone an idea for another (simple) mail server I can configure myself? I'm a beginner :)

 

4) What does the authentication mean, as mentioned in the error message?

 

5) Can I do something in php.ini with sendmail to solve this particular issue?

 

 

Thanks in advance and kind regards,

Link to comment
https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015829
Share on other sites

You need to have a mail service up an running on your server.  If it was running on linux your could install sendmail or postfix and that is the service that runs mail.  On windows, you can configure your server for mail services:

http://www.ilopia.com/Articles/WindowsServer2003/EmailServer.aspx

Link to comment
https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015845
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.