How would I send e-mails through a POP3 E-Mail account?
Specifically, G-Mail.
Printable View
How would I send e-mails through a POP3 E-Mail account?
Specifically, G-Mail.
Can I please be informed on what POP3 is and some other stuff related to e-mail...
Pfffffffft!
Look it up on Google or Wikipedia.
Yeah but doing that in something related to something like email usually results in two much information that does not get to the point which is why I asked you...
You can't understand this?
Quote:
Originally Posted by Random Google Result
For the original question--
...you can't.
You would need to write a program that logs onto gmail, etc. Have fun.
You can actually specify any from or reply-to email address, but that's phishing. I don't recommend it. If you're just sending from your own email, then that seems reasonable.
G-Mail allows POP3 access.
Well... yeah.
But this is in the PHP section.
PHP can't just go and access pop3... I don't think, anyway.
Maybe there's an extension.
Well, according to this: http://au2.php.net/imap
It is.
But I just don't know how to use it :p
No. From what I understand that allows you to operate an email server on your computer.
You could access you@yoursite.com, not you@gmail.com
Now... perhaps there would be a way to configure the email server to use the specifications provided by google's pop3 access methods, but I really don't know.
Anyway... why?
As I said... just use the from and reply-to headers to manually input your email, then it'll work like that.
Most of the time you're allowed to edit the address that the e-mails are sent to...Quote:
IMAP is a completely different protocol than POP3. However, you would be able to log into your POP3 account if their server had IMAP enabled. Otherwise, you will not be able to do it. If IMAP is enabled; though, you may want to look at the imap functions on php.net.
Hope this helps.
//EDIT: Although I recommend doing what djr33 suggested. It would probably be a lot more reliable. (Also, keep in mind that if IMAP is enabled; but on a different port other than 143, then the imap functions will not work properly.)
Thanks.
I'll look into configuring my server soon.
Ok. I ended up setting my own e-mail server with hMailServer or something.
It supports SMTP.
Now, how do I set the mail() function?
In your php.ini file, look for "Mail Settings", you'll see 2 things (if you are on windows) SMTP Server, and SMTP Port (or something similar). The server should be set as localhost (or the address of your server) and the port should be 25 (or the port of your server).
Hope this helps.
//EDIT: Also in hMailServer, you will have to play with the configuration a little to get PHP to send emails through it.
How would I configure that?Quote:
//EDIT: Also in hMailServer, you will have to play with the configuration a little to get PHP to send emails through it.
Well, in the hMailAdmin program look under the heading "SMTP". Beneath that there is aother heading that says (I think) "IP Homes". Click on "My Computer" and you will see some checkboxes for you to limit who can/cannot send through your server. Same with "Internet".
//EDIT: For the settings I mentioned above (the IP Homes thing) is actually under these heading: "Settings" => "Advanced" => "IP Ranges" => "My Computer" or "Internet".
You will then see the checkboxes underneath the heading "Allow Deliveries from:".
Hope this helps.
Thanks.
I've got the e-mail setup and I can recieve and send e-mails to myself. But I can't send e-mails to other people.
I've tried doing Settings>Advanced>IP Ranges>Internet and deselected both options for "Require Authentication for deliveries" but it keeps on adding to the queue.
What about the options in "Allow Deliveries From" part, did you check all of the items? Also, you need to make sure that you have an MX record set up so others can send mail to you (and in some cases, receive mail from you).
Hope this helps.
They're all ticked.Quote:
Originally Posted by thetestingsite
How do I configure that?Quote:
Originally Posted by thetestingsite
You would need a subdomain name pointing to the IP address of your computer. After which you would need to set up the MX record through your DNS server (whoever runs this will need to do it). If you need an MX record (or subdomain), let me know and I'll set one up for you. All I need from you to do this is the IP address you want the subdomain to point to.