@ivgok
Systemadministrator

PHP — какой есть формуляр с отправкой на email?

Здравствуйте, проблемма состоит в следующем.
Есть срочная необходимость установить формуляр на страницу
Был взят kontaktformular-erstellen.berlinwebworld.de/editor

Проблемма сервер при отправке сообщает следующее:
sendmail: fatal: www-data(33): No recipient addresses found in message header

Код отвечающий за письмо:

$this->cfg['captacha_length'] = 6;
		
		$this->cfg['emailaddress'] = $cfg['test@test.com'];
		
		$this->cfg['confirmation_email_subject'] = 'New message sent from your website';
		
		$this->cfg['form_validationmessage'] = $cfg['form_validationmessage'];
		
		$this->cfg['form_error_captcha'] = $cfg['form_error_captcha'];
		$this->cfg['form_error_emptyfield'] = $cfg['form_error_emptyfield'];
		$this->cfg['form_error_invalidemailaddress'] = $cfg['form_error_invalidemailaddress'];
		$this->cfg['form_validationmessage'] = $cfg['form_validationmessage'];
		$this->cfg['form_emailnotificationinputid'] = $cfg['form_emailnotificationinputid'];
		$this->cfg['form_emailnotificationtitle'] = $cfg['form_emailnotificationtitle'];
		$this->cfg['form_emailnotificationmessage'] = $cfg['form_emailnotificationmessage'];
		
		
		$this->mailheaders_brut .= "From: ".$this->cfg['emailaddress']."<".$this->cfg['emailaddress'].">\r\n";
		$this->mailheaders_brut .= "Reply-To: ".$this->cfg['emailaddress']."<".$this->cfg['emailaddress'].">\r\n";
		$this->mailheaders_brut .= "MIME-Version: 1.0\r\n";
		$this->mailheaders_brut .= "Content-type: text/plain; charset=utf-8\r\n";
		$this->mailheaders_brut .= "X-Mailer: PHP/".phpversion()."\r\n";
		
		$this->demo = 0;
		$this->envato_link = 'http://codecanyon.net/item/contact-form-generator/1719810';
	}
	
	
	function sendMail()
	{
		$mail_body .= 'You received a new message: '.date("F j, Y, g:i A")
					."\r\n"."--------------------------------------------------------";


Помогите выяснить проблемму или найти альтернативное решение
  • Вопрос задан
  • 2411 просмотров
Решения вопроса 1
@iru
php dev
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
YCLIENTS Москва
от 200 000 до 350 000 ₽
Ведисофт Екатеринбург
от 25 000 ₽
ИТЦ Аусферр Магнитогорск
от 100 000 до 160 000 ₽