Elxis CMS Forum

Support => General => Topic started by: ROUBOS on August 26, 2013, 23:27:43

Title: eforms not sending email [SOLVED]
Post by: ROUBOS on August 26, 2013, 23:27:43
Hi,
got eforms working fine. I have several forms in the one data.xml file and even though the forms do display correctly, and when hitting "submit" I get the successdul response, I never recieve the email?

Is there somthing else I need to check for it to work properly?

thanks

EDIT>> here's my data.xml
Code: [Select]
<eforms>
<form name="reservation" method="POST" action="email">
 <onsuccess>Reservation Submitted Successfully! Thank you!</onsuccess>
 <email>xwseliso@hotmail.com</email>
 <submit>Submit</submit>
 <items>
  <item type="text" label="Driver's Name:" required="1" size="60" default="" description="Please enter your name"></item>
<item type="text" label="Driver's Age:" required="1" size="2" default="" description="Please enter your age"></item>
<item type="text" label="Email Address:" required="1" size="60" default="" description="Please enter your email"></item>
<item type="text" label="Mobile Number:" required="1" size="60" default="" description="Please enter your mobile number"></item>
<item type="text" label="Accommodation:" required="0" size="60" default="" description="Please enter your accommodation in Kalymnos"></item>
<item type="date" label="Pickup Date:" required="1"></item>
<item type="date" label="Return Date:" required="1"></item>
<item type="text" label="Number of rental days:" required="1" size="2" default=""></item>
<item type="separator" label="Select Number of Scooters/Bicycles:" default="" description=""></item>
<item type="range" label="SYM SYMPHONY SR 150cc" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT SPEEDFIGHT 3 50cc - Class A" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT ELYSTAR 50cc - Class A" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="GILERA RUNNER SP 50cc - Class A" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT TREKKER 50cc - Class B" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT VIVACITY 3 50cc - Class B" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="SYM JET EURO X50 50cc - Class B" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT V CLIC 50cc - Class C" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT LUDIX ONE 50cc - Class C" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="Bicycle" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="separator" label="" default="" description=""></item>
<item type="textarea" label="Message:" cols="60" rows="3" required="0" default="" description="Write a message"></item>
 </items>
    </form>
<form name="kratisi" method="POST" action="email">
 <onsuccess>Η κράτηση έγινε με επιτυχία! Σας ευχαριστούμε!</onsuccess>
 <email>xwseliso@hotmail.com</email>
 <submit>Υποβολή</submit>
 <items>
  <item type="text" label="Όνομα Οδηγού:" required="1" size="60" default="" description=""></item>
<item type="text" label="Ηλικία Οδηγού:" required="1" size="2" default="" description=""></item>
<item type="text" label="Email:" required="1" size="60" default="" description=""></item>
<item type="text" label="Κινητό τηλέφωνο:" required="1" size="60" default="" description="Παρακαλώ εισάγετε τον αριθμό του κινητού σας"></item>
<item type="text" label="Διαμονή:" required="0" size="60" default="" description="Παρακαλώ εισάγετε τη διαμονή σας στην Κάλυμνο"></item>
<item type="date" label="Ημερομηνία παραλαβής:" required="1"></item>
<item type="date" label="Ημερομηνία επιστροφής:" required="1"></item>
<item type="text" label="Ημέρες ενοικίασης:" required="1" size="2" default=""></item>
<item type="separator" label="Επιλέξτε Scooters/Ποδήλατα" default="" description=""></item>
<item type="range" label="SYM SYMPHONY SR 150cc" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT SPEEDFIGHT 3 50cc - Class A" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT ELYSTAR 50cc - Class A" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="GILERA RUNNER SP 50cc - Class A" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT TREKKER 50cc - Class B" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT VIVACITY 3 50cc - Class B" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="SYM JET EURO X50 50cc - Class B" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT V CLIC 50cc - Class C" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="PEUGEOT LUDIX ONE 50cc - Class C" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="range" label="Bicycle" required="0" options="0;9" step="1" default="0" description=""></item>
<item type="separator" label="" default="" description=""></item>
<item type="textarea" label="Mήνυμα:" cols="60" rows="3" required="0" default="" description="Γράψτε ένα μήνυμα"></item>
 </items>
    </form>

</eforms>

Title: Re: eforms not sending email
Post by: ROUBOS on August 27, 2013, 07:52:19
something is going wrong since not even the normal contact form is sending emails

the email used is a hotmail.com email even for the main contact form.

under global configuration mail, should I be using SMTP?

currently set to just PHP mail function

EDIT: Could an update of the elxis version cause this?
Title: Re: eforms not sending email
Post by: datahell on August 27, 2013, 10:45:10
Sending from example.com emails as something.com (hotmail.com in your case) via PHP (without authentication) is  considered as possible spam. This is why you should always use SMTP with a local email account.

hotmail, yahoo, and especially gmail are theworst emails. Mostly spammers use them.
Title: Re: eforms not sending email
Post by: ROUBOS on August 27, 2013, 10:49:47
yes I understand. Just that this person only wants to use that particular email. I could not even get them to use an email from their domain 

to link apo to support to dnhost:
http://dnhost.gr/kb/article/AA-00558/0/%CE%91%CF%80%CE%BF%CF%83%CF%84%CE%BF%CE%BB%CE%AE-e-mail-%CE%B1%CF%80%CF%8C-%CF%86%CF%8C%CF%81%CE%BC%CE%B5%CF%82-%CE%B5%CF%80%CE%B9%CE%BA%CE%BF%CE%B9%CE%BD%CF%89%CE%BD%CE%AF%CE%B1%CF%82-%CE%BC%CE%B5-SMTP-authentication.html


Should I upload this mailer? Doesn't elxis have its own?
Title: Re: eforms not sending email
Post by: ROUBOS on August 27, 2013, 11:15:36
after setting up smtp for hotmail, getting this error at post of the contact form

URI: index.php?option=com_contact&op=sendmail&Itemid=32
Path: /includes/phpmailer/class.smtp.php
Line: 105
fsockopen(): unable to connect to smtp.live.com:25 (Connection refused)
Title: Re: eforms not sending email
Post by: datahell on August 27, 2013, 11:45:06
I think the reason is obvious (connection refused). I don't know if hotmail allows you to use its SMTP server this way. Maybe there is something to setup there. I don't know, it is not an Elxis issue.

Elxis 2009.x uses the same mailer PHPmailer, so you don't have to upload it, just set Elxis configuration properly.


Note: Elxis 4.x uses Swift mailer.
Title: Re: eforms not sending email
Post by: ROUBOS on August 27, 2013, 11:51:18
looks like I'll just create a domain email and use that for authentication

I created an email account and have it the global>configuration under Αποστολή Αλληλογραφίας από:

and still not recieving any emails from the contact form

Now fixed it. Using a domain email as the sender worked
Title: Re: eforms not sending email [SOLVED]
Post by: datahell on August 27, 2013, 12:21:05
I told you that it will work...

SMTP with a local email is the proper and safest way to send emails via ANY web application.
If you use SMTP of an external provider (like gmail) make sure the external provider accepts external connections to its SMTP server.
Sending emails with PHP mail function is not safe as these emails are anonymous, not authenticated and many mail servers refuse to accept them or mark them as SPAM. Also many web hosting providers haven't properly setup php for sending emails. So, always use SMTP.
Title: Re: eforms not sending email [SOLVED]
Post by: ROUBOS on August 27, 2013, 17:35:38
thanks a lot