#1 2013-10-29 20:19:08

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Contact Form not delivering emails

I've followed all the guidelines here:
http://doc.ionizecms.com/en/tags-reference/form-tags

but it doesn't seem to work.
It even shows the success message as it has been sent, but I don't receive any email on my google email account. The email address to where the form should be sending the messages has been set in: advanced settings >> email >> contact email

Am I missing something?

Thanks very much for your help.

Offline

#2 2013-11-06 13:31:33

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

Hi people, anyone has had this issue?  thanks very much.

Offline

#3 2013-11-14 21:51:47

acemir
Member
Registered: 2013-11-14
Posts: 1

Re: Contact Form not delivering emails

I had this same issue on my local installation of ionize (using XAMPP), but when I put the application in online, e-mail has to be sent normally.

Offline

#4 2013-11-17 01:22:00

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

Hi Acemir, I know it wouldn't work on a local installation. But the thing is that online it doesn't work for me either. Where or how you have configured the email address where all the submitted forms will be sent?  Thanks very much

Just to make it clear. I've tried this in 2 different servers with different domains and it doesn't work on any of them.

Last edited by franolivera (2013-11-17 01:25:41)

Offline

#5 2013-11-18 10:25:43

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Contact Form not delivering emails

is your email configured in the backend ?
Test it with other protocol : sendmail, mail(php), SMTP ?


Webmaster / OUF!WEB

Offline

#6 2013-11-24 21:32:28

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

I've tried all of the other protocols but without luck.
I managed to make it work adding to <theme>/libraries/Tagmanager/Contact.php the following code:

if (TagManager_Form::validate($form_name))
        {
            //
            // ... Here you do what you want with the data ...

$nombre = $_POST['name'];
$mail = $_POST['email'];
$asunto = $_POST['subject'];
$text = $_POST['message'];
           
$header = 'From: ' . 'mensaje-web' . " \r\n";
           
$mensaje = "Nombre: " . $nombre . " \r\n";
$mensaje .= "E-mail: " . $mail . " \r\n";
$mensaje .= "Asunto: " . $asunto . " \r\n";
$mensaje .= "Mensaje: " . $text . " \r\n";
           
$para = 'MyEmail@gmail.com';
$asunto = 'Mensaje Web de '. $nombre ;
           
mail($para, $asunto, utf8_decode($mensaje), $header);
.....................

Honestly I'm not a php programer. I'm just a plain designer. So I'm not really sure why or how it's working. But at least it does, that is pretty much what I needed.

Last edited by franolivera (2013-11-24 21:35:57)

Offline

#7 2013-11-24 22:00:46

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Contact Form not delivering emails

@acemir. It's normal if mails are not sended with Xampp on windows because there is no software installed to route mail on port 25.
So, @franolivera, it's probably also you problem.


Webmaster / OUF!WEB

Offline

#8 2013-11-24 22:02:52

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

Oh no please Kink read the whole post. You'll see that I've tested it online. In fact I only work and test online.
meaning on a server.

Last edited by franolivera (2013-11-24 22:03:25)

Offline

#9 2013-11-24 22:05:05

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Contact Form not delivering emails

Ok, can you give us more info about your server ?
An idiot thing : perhaps in spam folder of gmail ???

Last edited by Kink (2013-11-24 22:12:31)


Webmaster / OUF!WEB

Offline

#10 2013-11-24 22:15:27

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

this is the server plan I'm using:
http://www.evidaliahost.com/hosting/reseller20.php
Sorry that this is not in english. But ask me please if there is some specific data you need. Thanks.

note: not in spam folder

Last edited by franolivera (2013-11-24 22:17:03)

Offline

#11 2013-11-24 22:18:22

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

Just take into account that with my little code is working right now... but I think this is just a bad patch ... that it should work natively right?

Offline

#12 2013-11-24 22:44:34

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Contact Form not delivering emails

I saw these lines in the doc http://doc.ionizecms.com/en/tags-reference/form-tags, in 'Declare th email section' :

// Send the mail to the address filled in in the 'email' input of the form
// Values can be :
// - One plain email address
// - 'form' to send it to the email of the form data
// - 'website' to send it to the Email set in Ionize under Settings > Advanced > Email > Website
'email' => 'form',

Sorry, but i don't tested this part.


Webmaster / OUF!WEB

Offline

#13 2013-11-24 22:53:49

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

yeah but that's only if you want to send the mail to the address filled in in the 'email' input of the form. If not, it's not necessary.

Offline

#14 2013-11-24 23:03:33

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Contact Form not delivering emails

Sorry, i have no idea about your problem sad


Webmaster / OUF!WEB

Offline

#15 2013-11-24 23:26:22

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

oks . .thanks anyway smile

Offline

#16 2013-12-17 09:48:40

damascus
Member
From: Brisbane, Australia
Registered: 2013-04-08
Posts: 270
Website

Re: Contact Form not delivering emails

Ive recently had trouble with 'houdini emails', emails that COMPLETELY vanished once they reached a certain gmail account that was supposed to forward them on, but only when generated by my forms (which worked perfectly for everyone else).

If you google about vanishing gmail emails, you will see a lot of hits.

The obvious question should be: "can i send to other addresses".

Establish that you can send to non-gmail accounts and then determine whether its the code or not.

In my case, i just had to directly send to the final address, which always recieved my mail.


Webmaster | OneCNC Australia

Offline

#17 2013-12-20 06:35:57

keiichi
Member
Registered: 2013-11-18
Posts: 31

Re: Contact Form not delivering emails

I'm having the same problem with the contact form not sending email. franolivera did you ever fix this problem??

Offline

#18 2013-12-20 07:15:23

franolivera
Member
Registered: 2012-05-17
Posts: 55
Website

Re: Contact Form not delivering emails

yes Keiichi, if you take a look at post # 6 in this same thread you'll see how I managed to fix the problem. Let me know if you don't understand it ok? smile

Damascus, thanks very much, I'll try with a non gmail account and see what happens... smile

Offline

#19 2014-02-13 06:32:43

damascus
Member
From: Brisbane, Australia
Registered: 2013-04-08
Posts: 270
Website

Re: Contact Form not delivering emails

@franolivera

Did it work nativly when directed to non-gmail accounts ?


Webmaster | OneCNC Australia

Offline

#20 2014-02-20 10:31:05

Michel-Ange
Ionize Core Team
From: Paris, France
Registered: 2010-03-22
Posts: 927
Website

Re: Contact Form not delivering emails

From 1.0.4, the forms declaration is more explicit on which emails are used as recipient.

I'm just upgrading the doc page about that.

In your case, did you try to put 'email' => 'contact' ?

		// Emails which will be send when the form is properly processed
		'emails' => array
		(
			// To Admin Email
			array
			(
				// Values can be :
				// - One plain Email address : my.name@mydomain.com
				// - 'form' to send it to the email of the form data
				// - 'site' to send it to the Email set in Ionize under Settings > Advanced > Email > Website
				// - 'contact' to send it to the Email set in Ionize under Settings > Advanced > Email > Contact
				// - 'info' to send it to the Email set in Ionize under Settings > Advanced > Email > Info
				// - 'technical' to send it to the Email set in Ionize under Settings > Advanced > Email > Technical
				'email' => 'contact',
				// Email used for the reply_to Email
				'reply_to' => 'form',
				// Language term index, as set in language/xx/form_lang.php
				'subject' => 'mail_website_registration_subject',
				// View file to use for the email
				'view' => 'mail/register/to_admin',
			),
			// To User Email
			array
			(
				'email' => 'form',
				'subject' => 'mail_user_registration_subject',
				'view' => 'mail/register/to_user',
			),
		),

Inspiration & Innovation : Websites by Partikule, Agence Web Paris

Offline

#21 2014-03-04 20:39:04

xensor
Member
Registered: 2014-03-04
Posts: 9

Re: Contact Form not delivering emails

you could also use your own script just change the action part to the script that you made to send emails/newsletters out and then set up the data in the mailer file.

if you need to know how to make one here is one:

http://wiki.dreamhost.com/PHP_mail%28%29

Offline

#22 2016-06-12 05:51:35

fredericomarinho.com
Member
From: Juiz de Fora / Brazil
Registered: 2015-06-08
Posts: 40
Website

Re: Contact Form not delivering emails

@franolivera

Did you solve your problem using the "right" way? I think I can help you..


Frederico Marinho - Social Media and Web Developer
contato@fredericomarinho.com
fredericomarinho.com

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations