CodeIgniter Forums
Window, PHP , send mail via SMTP - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Window, PHP , send mail via SMTP (/showthread.php?tid=14694)



Window, PHP , send mail via SMTP - El Forum - 01-12-2009

[eluser]M Moeen uddin[/eluser]
My scenario is this. I have no isp some mail.isp.com.. i m using boradband (shared).
Not even my local mail function run and gives error 'saying to change settings in the PHP.ini'
I have no smtp server, and i downloaded postcast server and hMailserver but my am unable to set them up.

Now.. i m completley lost.. Please Help ASAP.


Window, PHP , send mail via SMTP - El Forum - 01-12-2009

[eluser]obiron2[/eluser]
I presume you mean while you are developing on a local machine.

What I did was copy the email helper to MY_email and modified it to output it's contents to the screen so that I could at least see what would be sent. when uploading to the live site, don't upload MY_email and your emails will send with the correct protocold.

You will need mail functionality from your hosting service.

Obiron


Window, PHP , send mail via SMTP - El Forum - 01-12-2009

[eluser]Krzemo[/eluser]
You can easly use any free external mail account if you have internet connection. This is how im doing it.
Though, I had some problems (lf cr chars related) with CI Native mailer and used PHPMailer which worked.


Window, PHP , send mail via SMTP - El Forum - 01-12-2009

[eluser]M Moeen uddin[/eluser]
Thanks guys.

@Cshamoh

PHPmailer also works for me with smtp.googlemail.com BUT i want the native CI to use. (Preferably)

@obiron2
I will check by getting some local isp scratch card..