Hi,
I've had this form working before, but now after a while of inactivity it doesnt seem to work anymore. This is my form code:
In config.php I simply have this code:
The form can be found here, it submits just fine and gives the success message, but no email arrives in my inbox (including spam folder). Any ideas what might be wrong here?
I've tried this in config.php as well without any luck
Hardcoding the to and from email doesnt work either:
When debug='1' in the <cms:send_mail> tag my log.txt gives me this:
I've had this form working before, but now after a while of inactivity it doesnt seem to work anymore. This is my form code:
- Code: Select all
<cms:form enctype="multipart/form-data" method="post" class="k_form">
<cms:if k_success>
<h2 style="padding-top:50px;">Tusen takk!</h2>
<p>
<cms:show kontakt_suksess />
</p>
<cms:send_mail from=k_email_from to=k_email_to subject='Melding fra Normalkost.no'>Melding fra kontaktskjema på nettsiden.
<cms:show k_success />
</cms:send_mail>
<cms:else />
<div class="contactform">
<div class="thirtythree columns">
<cms:input type="text" name="name" id="name" placeholder="Navn *" required='1' />
</div>
<div class="thirtythree columns">
<cms:input type="text" name="email" id="email" placeholder="Email *" required='1' validator='email' />
</div>
<div class="thirtythree columns">
<cms:input type="text" name="phone" id="phone" placeholder="Tlf" />
</div>
<div class="hundred columns" style="margin-top:10px;padding-top:0;">
<cms:input type='textarea' name="message" rows="20" cols="20" id="message" placeholder="Melding *" required='1'></cms:input>
</div>
<div class="thirtythree columns" style="margin-top:0;padding-top:0;margin-bottom:50px;">
<input type="submit" name="submit" value="Send melding" class="submit-button" />
</div>
<div class="fifty columns" style="margin-top:0;padding-top:0; text-align:left;">
<cms:if k_error_name>
<div>
<span style="color:#da5555;">*
<cms:show kontakt_error_navn />
</span>
</div>
</cms:if>
<cms:if k_error_email>
<div>
<span style="color:#da5555;">*
<cms:show kontakt_error_email />
</span>
</div>
</cms:if>
<cms:if k_error_message>
<div>
<span style="color:#da5555;">*
<cms:show kontakt_error_mld />
</span>
</div>
</cms:if>
</div>
</div>
</cms:if>
</cms:form>
In config.php I simply have this code:
- Code: Select all
// 13.
// Your Email address. Will be used in contact forms.
define( 'K_EMAIL_TO', 'g*******@g***l.com' );
The form can be found here, it submits just fine and gives the success message, but no email arrives in my inbox (including spam folder). Any ideas what might be wrong here?
I've tried this in config.php as well without any luck
- Code: Select all
define( 'K_USE_ALTERNATIVE_MTA', 1 );
Hardcoding the to and from email doesnt work either:
- Code: Select all
<cms:send_mail from='admin@site.com' to='g*******@g*****.com' subject='Melding fra Normalkost.no' debug='1'>
When debug='1' in the <cms:send_mail> tag my log.txt gives me this:
- Code: Select all
=======================[2023-09-20 00:38:57]=======================
From:
To:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Subject: Melding fra Normalkost.no
Message: Melding fra kontaktskjema på nettsiden.
name: twreeb
email: dfgd@gsdg.com
phone: 348923
message: dsaglasdg sgsf gfd df
Delivery Failed