unable to send email |
[eluser]ashutosh[/eluser]
Hi , i am trying to send email from my localhost. I am using xampp, And also i have enalble Mercury After submiting the form i am getting the Success message ,but i am not seeing any email in my inbox/spam. Pelase help me to solve my problem. My code: Code: <?php What output i am getting is: Code: Your message has been successfully sent using the following protocol: mail
[eluser]TheFuzzy0ne[/eluser]
First of all, I would remove your email address from the post above. Secondly, you might want to consider using an SMTP mail account for sending mail. All the configuration is done. All you need to do is use it. On top of that, if something is not right, you can see straight away.
[eluser]ashutosh[/eluser]
Its very difficult. How can i send email using an SMTP mail account ? Please check and help me why my above code is not sending email? I will remove my email once my above problem is fixed. Please help.
[eluser]TheFuzzy0ne[/eluser]
When you signed up for Internet, your ISP probably provided you with an email address, and they'll no doubt have an SMTP server that you can use. Sending using SMTP is simple once you have the correct settings. You just put them into ./application/config/email.php, and they'll be automatically loaded whenever you load the email library. If you're going to send via GMail, you may need to generate an application-specific password, but I suspect you're still going to run into more problems.
[eluser]TheFuzzy0ne[/eluser]
You're also running validation twice. You should have: Code: if ($this->form_validation->run() === TRUE) { In order for you to get this working, the SSL PHP extension must be loaded. Do you know if it is?
[eluser]ashutosh[/eluser]
Well i would like to use this technique. "Sending using SMTP is simple once you have the correct settings. You just put them into ./application/config/email.php, and they’ll be automatically loaded whenever you load the email library." I checked my ./application/config/ folder , there is no any email.php file . I am using codeigniter 2. I am seeing Email.php file into folder system/libraries/Email.php Now how can i correct my setting . There is no any email.php into my config folder?
[eluser]TheFuzzy0ne[/eluser]
That's not the key to fixing this. It's simply a way of keeping your settings out of your controller so they can easily be re-used in other places in your app. You still haven't answered the question. Is the SLL PHP extension enabled? Why can't you use the email account your ISP probably supplied you with when you signed up for your Internet?
[eluser]ashutosh[/eluser]
I am testing on my live server. There will be SLL PHP extension enabled , i guess. What do you mean by "Why can’t you use the email account your ISP probably supplied you with when you signed up for your Internet?" Please describe its meaning!
[eluser]TheFuzzy0ne[/eluser]
I have ADSL Broadband provided by Sky - a British company. They have provided me with an email address to use. The service allows me to connect to their server to send emails using SMTP. Who provides your Internet connection? I'm assuming yours works in a similar way. |
Welcome Guest, Not a member yet? Register Sign In |