|
-
Jan 18th, 2007, 10:41 PM
#1
Thread Starter
Addicted Member
[RESOLVED] How to send emails by accessing SMTP
Hello
How can I send emails by accessing SMTP?
I want to use smtp.gmail.com.
How can do it in PHP page?
Thanks
-
Jan 19th, 2007, 04:56 AM
#2
Re: How to send emails by accessing SMTP
There's the mail() function. After that, it's just a matter of configuration. (Rather complicated configuration in Unix.)
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 19th, 2007, 09:14 AM
#3
Re: How to send emails by accessing SMTP
In linux you shouldn't need to use an SMTP server as the majority of distributions come with a mail transfer agent installed and configured.
-
Jan 19th, 2007, 12:35 PM
#4
Thread Starter
Addicted Member
Re: How to send emails by accessing SMTP
But SMTP is better I think.
-
Jan 19th, 2007, 01:12 PM
#5
Re: How to send emails by accessing SMTP
 Originally Posted by onh1986
But SMTP is better I think.
It's most certainly not. Why would you want to relay that email through another server when you can connect directly to the recipients MTA? It means more hops the for email and an increased chance of something happening to cause the email to go missing.
Also, if you are using the gmail SMTP server you would no doubt have to supply a user name and password. This is not supported by the mail function so you will have to write you own using sockets.
-
Jan 19th, 2007, 01:22 PM
#6
Thread Starter
Addicted Member
Re: How to send emails by accessing SMTP
I want to send from my Google Email because my website emails go to Junk and sometimes they aren't sent (there's a problem in my website server), so I want to send my emails from my Google Email.
-
Jan 19th, 2007, 02:08 PM
#7
Re: How to send emails by accessing SMTP
You'd need use a mailer class instead then. I have one of my own but you'd probably prefer to use one of the better documented ones out there.
-
Jan 19th, 2007, 02:15 PM
#8
Thread Starter
Addicted Member
Re: How to send emails by accessing SMTP
How can I use mailer class?
-
Jan 19th, 2007, 02:44 PM
#9
Re: How to send emails by accessing SMTP
http://www.google.co.uk/search?q=php...ient=firefox-a
Download it, extract it, read the documentation, use it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|