• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
contact form issues

#1
hello all 

I have a website made by CI, inside the site there's a contact form deployed in this way 

from the admin, we enter the e-mail that receives the messages from visitors 

the visitor when going to contact form he fills the form and enters his email address 

the site will forward this message using phpmail() to the receiver email and put the visitor email in the field of replay to 

so the person who will receive the message can directly click on replay and the replay will send to the visitor 

the problem is the visitor email address inserted into the message between ' ' so the receiver can't reply to it 
(attached photo)

also, I have another issue 

if you see library I have 3 ways to send the message (PHPMAIL, GMAIL, and SMTP) and the configuration of last two options from admin panel now only phpmail working but when I make it SMTP or Gmail not work be know that the information is correct 

MVC files and library attached


Attached Files Thumbnail(s)
   

.php   C_Contact.php (Size: 2.79 KB / Downloads: 70)
.php   Contact_model.php (Size: 2.17 KB / Downloads: 82)
.php   V_Contact.php (Size: 4.13 KB / Downloads: 63)
.php   My_email.php (Size: 3.67 KB / Downloads: 69)
Reply

#2
PHP Code:
// for double quotes
$str str_replace('"'''$str);

// for single quotes
$str str_replace("'"""$str); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.