0

like i cant use mail() beacuse it uses my hosts mailer which is really slow.
i use google apps to check my email adress at my domain and i can send with tht to but thats at the gmail website. is there some kind of script to send with gmail from a webpage on my site?

3
Contributors
16
Replies
18
Views
7 Years
Discussion Span
Last Post by SKANK!!!!!
0

can you explain your problem? you can use that code in your server with your gmail username and password.

Edited by arunss: n/a

0

i cant use that code. i have to like use a tutorial or something. i cant use codes with licenses on them,
i still dont understand how to use localhost to send a email from my website. i mean is it localhost of the visitor or local host of something else/?

0

@skank,

That code will work on your localhost and website. I found a lot of google queries about sending email from localhost. Thats why I gave that titile to that code. As you said, there is some licence info of codeigniter. Sorry. Anyway if you put this code in your server, you will be able to sent mail with your gmail credentials.

0

@skank,

That code will work on your localhost and website. I found a lot of google queries about sending email from localhost. Thats why I gave that titile to that code. As you said, there is some licence info of codeigniter. Sorry. Anyway if you put this code in your server, you will be able to sent mail with your gmail credentials.

does anyone kno w of any unlicensed scripts or a tutorial i can learn from so i can make my own?
using localhost to send mail with gmail server is new to me so i really dont understadn how to code a script to do that from scratch but am looking forward to doing so.

0

Pear is framework for PHP and is very very widely used. Anyway todo it using plain php, try editing your "php.ini" file. Find [mail function] block adn tweak it. I cant be very sure with Windows, but this must work. Here's how my php.ini file from XAMPP looks like'(I havent edited this part)

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = "\"D:\xampp\sendmail\sendmail.exe\" -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "D:\xampp\apache\logs\php_mail.log"

for user name and password add this

username = ____
password = _____
0

thanks but my host doesnt let me have a php ini file and i asked in customer support and pear isnt supported.

0

OK! Browsing over php manual gave me this.
http://www.php.net/manual/en/book.imap.php

The installation part says that PHP has to be compiled with "--with-imap" option. So again, you will have to see if your host supports it!! Gmail supports supports IMAP, so no problem with this part.

I have never used IMAP package, but I think you open a mailbox using "imap_open()" function and send mail using "imap_mail(){" function.

Edited by vishesh: n/a

0

well imap functions arent supported either...
the support suggested a work around such as php mailer'
but that script is licensed as well and i want to learn from like a tutorial or something so i can do it. from scrach or something

0

PHPMailer is licensed as LGPL...whats the problem with that? LGPL isnt strict too!! Everything is licensed, PHP too!!!

Edited by vishesh: n/a

0

unfortunately, thats not up my alley. im making a site that is purely stuff i code from "scratch" so i know what each thing does and dont get in trouble for using somebody elses code on my future comeerciall site

0

LGPL allows you to use their code in commercial products. And to know hoe things work, study the source code of these libraries. I'm afraid you dont have much options.

0

well i still dont understand how it works i will just get lost in the source stuff. does anyone know how to mail then? i need someone to show me some tutorial that i can do because phpmailer is an extensive time taking amount of work to go throuigh and figure out what it means which i will just get lost in and it will be worthless.
confusin is NOT on my side.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.