Problem with SMTP Mailfunction for {{form}}

Hi There,

I am trying to get the SMTP-Mailfunktion to work - but can’t get it right:

The Form doesn’t even try to submit the form - meaning it doesn’t even “Spell-Check”:

http://3d-kjc.de/projek-service

I added my emailadress to “Config.php”

$mail_inputs = array(‘Name’=>‘text’,‘Email’=>‘email’);
$lang_form_name = ‘Name’;
$lang_form_email = ‘Email’;
$mail_textarea = array(‘Ihre Nachricht’=>‘7’);
$email_contact = array(‘xxx-PW’);

I uncommented the SMTP section in the “inc/tags/form.php” and added the relevant (worked on an other project).

the hoster is Strato.de Therefore i added the following info:

$mail->isSMTP();
$mail->Host = ‘smtp.strato.de’;
$mail->SMTPAuth = true;
$mail->Username = me@me.de’;
$mail->Password = ‘xxx-PW’;
$mail->Port = 465;
$mail->SMTPSecure = ‘ssl’;

this setup works on an other project (kehinde.de)… can’t understand whats going on

any thoughts? THANKS!!!

Are you using the same port? Try 25 or 587 also…

It works :slight_smile:
here is what i did ( i have no special PHP skills - so i don’t know why this helped)

i changed the includes at the top of form.php

from …
include_once (“inc/plugins/mailer/class.phpmailer.php”);
include_once (“inc/plugins/mailer/class.smtp.php”);

to

include (‘inc/plugins/mailer/class.phpmailer.php’);
include (‘inc/plugins/mailer/class.smtp.php’);

I often had problems with “include_once”
(does anyone know include_once is more tricky?!?)

thx for your response!
i uses the same Port because the Hoster is the same.

1 Like