Go Back   Mosets Community > Mosets Hot Property 1.0 > Discussions, Troubleshooting and Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2008, 06:44 AM
ssaguiar ssaguiar is offline
Mosets'd
 
Join Date: Apr 2008
Posts: 143
Default Sending sms message

Hi.

I just finished the code to send sms messages when a client send a message from a contact form.
I need to tell that this code has absolutelly no garantie that it will work!
I know that it works with the Claro celular company, in Brazil.
If your cellphone company accepts that you send sms messages thru an e-mail client, then it should work.
Ask your cellphone's company if you can send sms thru e-mails, and, if yes, first of all try to send it using your prefered e-mail client. If it works, then you can test use this code.

First, you need to inform:
1 - the area code of your phone number;
2 - your phone number;
3 - your company server's address to where the e-mail is sent;
4 - a message subject.

Code:
$ddd='00';
$Phone='8842xxxx';
$operadora='yourcompanyadress.com';
$msgSubject='Your message subject';
In my case, the recipient address is formed by adding the variables:
Code:
$ddd.$Phone.'@'.$operadora
Then, the code that must be added in the file:
/components/com_hotproperty/controller.php
is:

Code:
$ddd='00';
$Phone='8842xxxx';
$operadora='yourcompanyadress.com';
$msgSubject='Your message subject';

if (strlen($enquiry) > 120 ) $msgBody = substr($enquiry, 1, 120); else $msgBody = $enquiry;

$mail = JFactory::getMailer(); /*I don't know if this is necessary, but I use it again...*/
$mail->setSender( array( $email, $name ) );
$mail->addRecipient($ddd.$Phone.'@'.$operadora);
$mail->setSubject($msgSubject);
$mail->setBody( $contactnumber."\n".$msgBody );

if(!$mail->Send())
{
	return JError::raiseError(500, "Faillure sending SMS!");
}
This code is to be inserted after the original code that sends the e-mail:, just after:
Code:
// Send email
if(!$mail->Send()) {
	return JError::raiseError(500, JText::_("Sorry, but an error occured while sending your email"));
}
As I said, there isno garanties.
This is a sugestion to the people at mosets, to make some tests and, if possible, and if it works, maybe to insert this in a new version of hot property.

Cheers to all.

Sergio

Last edited by ssaguiar; 11-20-2008 at 06:47 AM.
Reply With Quote
  #2  
Old 11-20-2008, 07:41 PM
ssnobben ssnobben is offline
Mosets'd
 
Join Date: Nov 2006
Posts: 801
Thumbs up

Could this be extended so it sends a sms to every listing company automatically, if they have set up their mobile phone number to their listing data correctly too?

So when a prospective buyer send an inquery to one listed property, the real estate agent also have an option to get this alert as a email and optionally also as a sms?

Would be nice if the requested data from the inquiry with name, phone number was sent with that sms to him also and as an email and stored to his account db dashboard over sent/received inquiries by sms/emails for a time period You could then charge every agent for sent inquiries.

This function can be very much improved and valuable both to the site owner and also for the real estate agents.
Reply With Quote
  #3  
Old 11-20-2008, 08:05 PM
ssaguiar ssaguiar is offline
Mosets'd
 
Join Date: Apr 2008
Posts: 143
Default

Quote:
Originally Posted by ssnobben View Post
Could this be extended so it sends a sms to every listing company automatically, if they have set up their mobile phone number to their listing data correctly too?

So when a prospective buyer send an inquery to one listed property, the real estate agent also have an option to get this alert as a email and optionally also as a sms?

Would be nice if the requested data from the inquiry with name, phone number was sent with that sms to him also and as an email and stored to his account db dashboard over sent/received inquiries by sms/emails for a time period You could then charge every agent for sent inquiries.

This function can be very much improved and valuable both to the site owner and also for the real estate agents.
I agree. This is a function that is very important.
At this time, when the client send an enquiry from the poperty or from the real estate's agent's contact form or from the company's contact form, I receive the sms because the form routine is the same for all of these.
To make it work as you sugest, it's necessary to add a checkbox for ech of the companies and for each of the agents (like 'Receive sms (Y/N)'), and, in the code, if the checkbox is active then send the sms to the agent/company also. This can be done reading the database and, when submiting the form, read all records to see if it needs to send the sms also to the company and/or to the others agents of this company, or something like that.
I think that it's somehow not very dificult to implement.

Sergio
Reply With Quote
  #4  
Old 02-09-2009, 11:49 PM
ssnobben ssnobben is offline
Mosets'd
 
Join Date: Nov 2006
Posts: 801
Thumbs up

Have you implement this Sergio? There is a nice comp J 1.5 native that maybe could be used?

http://extensions.joomla.org/extensi...s/3207/details

rgds
__________________
Success in the long run Its not about the code its about the people and community that's make it!
Reply With Quote
  #5  
Old 02-10-2009, 01:26 AM
ssaguiar ssaguiar is offline
Mosets'd
 
Join Date: Apr 2008
Posts: 143
Default

Quote:
Originally Posted by ssnobben View Post
Have you implement this Sergio? There is a nice comp J 1.5 native that maybe could be used?

http://extensions.joomla.org/extensi...s/3207/details

rgds
Not yet. I am waiting to see if there will have a stable hp 1 beta4, because I will code my mods for it, but just after it's stable enough.

Sergio
Reply With Quote
  #6  
Old 06-28-2009, 06:40 PM
gregos gregos is offline
Member
 
Join Date: Mar 2009
Posts: 48
Default

Can You do some custom work for me?
I need this script to be implemented in my site so that agents receive sms on the phone number they left when they registered.
Please contact me on dusmanko79@hotmail.com when You have the time.
Reply With Quote
  #7  
Old 06-29-2009, 04:39 PM
Dionysus Dionysus is offline
Mosets'd
 
Join Date: Jul 2006
Posts: 14
Default

Take a look at Google Voice.. Free and able to send out SMS..

http://www.google.com/googlevoice/about.html#
Reply With Quote
  #8  
Old 06-29-2009, 06:06 PM
gregos gregos is offline
Member
 
Join Date: Mar 2009
Posts: 48
Default

Yes very nice but this is not 10% of the work I need,how do I implement this in my site...
Reply With Quote
  #9  
Old 07-07-2009, 04:08 PM
nandoronsisvalle nandoronsisvalle is offline
Mosets'd
 
Join Date: Dec 2008
Posts: 9
Default

Quote:
Originally Posted by Dionysus View Post
Take a look at Google Voice.. Free and able to send out SMS..

http://www.google.com/googlevoice/about.html#
mmmhh very interesting. Does anyone have some invites?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +8. The time now is 10:59 AM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.