santocki
asked on
How to setup PHP sendmail or SMTP for home computer behind cable modem using Fedora Linux
Hi, I am using a home pc with Fedora Linux installed. I am trying to send email messages with a PHP script running under Apache server. I was wondering if it is possible:
1. To send emails using sendmail using my pc behind a home user cable modem (optimum online)?
2. If it's not possible using sendmail, how can I set it up to use SMTP provided by my ISP just like I use with email clients?
Thank you.
1. To send emails using sendmail using my pc behind a home user cable modem (optimum online)?
2. If it's not possible using sendmail, how can I set it up to use SMTP provided by my ISP just like I use with email clients?
Thank you.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> 1. To send emails using sendmail using my pc behind a home user cable modem (optimum online)?
no most mails will be rejected when delivered from dial-ups or directly marked as spam. So directly delivering the mails from your home-computer is no good idea.
> 2. If it's not possible using sendmail, how can I set it up to use SMTP provided by my ISP just like I use with email clients?
Use a mailer class in PHP which handels the SMTP-Auth at your providers side like
http://swiftmailer.sf.net
http://phpmailer.sf.net
no most mails will be rejected when delivered from dial-ups or directly marked as spam. So directly delivering the mails from your home-computer is no good idea.
> 2. If it's not possible using sendmail, how can I set it up to use SMTP provided by my ISP just like I use with email clients?
Use a mailer class in PHP which handels the SMTP-Auth at your providers side like
http://swiftmailer.sf.net
http://phpmailer.sf.net
ASKER
Thanks for the replies, but I am trying to find a simple solution like setting up a default SMTP server for all of my PHP scripts I am testing, which are the scripts developed by others so I can test them fully before uploading them to my server at the hosting company. So I won't add any kind of emailing routine by myself, because they already exists in these scripts.
Is it possible to set a default SMTP server at php.ini or http.conf?
Is it possible to set a default SMTP server at php.ini or http.conf?
ASKER
Note: Setting up a default SMTP means to use my ISP's SMTP address, not to setup a SMTP on my computer.
I have tried to send messages using PHP's default configuration that uses sendmail, but it won't work.
Thank you.
I have tried to send messages using PHP's default configuration that uses sendmail, but it won't work.
Thank you.
Did you read my URLs? I think it contains what you are looking for?
http://email.about.com/cs/phpemailtips/qt/et021802.htm
http://email.about.com/cs/phpemailtips/qt/et022802.htm
http://email.about.com/cs/phpemailtips/qt/et021802.htm
http://email.about.com/cs/phpemailtips/qt/et022802.htm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Fedora comes with sendmail pre-installed. If you can use the mail command from the prompt and successfully send/receive mail to an external account, you should be good to go.