• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP Mail Script

bob4432

Lifer
i need a php script that can email the information from a form but use an external smtp server. any ideas?
 
Text

You cannot do this. You must use the SMTP server specified in the php.ini file. If you do not have access to edit your php.ini file, you are SOL. Sorry. 🙁
 
i have access to the php ini file and tried to put my isps info in, but it doesn't work. i can setup up a regular mail server and i can send mail out this way, but not with php. any other ideas?
 
Originally posted by: bob4432
i have access to the php ini file and tried to put my isps info in, but it doesn't work. i can setup up a regular mail server and i can send mail out this way, but not with php. any other ideas?

do you know if your ISP requires SSL encryption or anything? this is a pretty straight forward set up so you probably have put in wrong information into php.ini.
 
Originally posted by: Zugzwang152
Originally posted by: bob4432
i have access to the php ini file and tried to put my isps info in, but it doesn't work. i can setup up a regular mail server and i can send mail out this way, but not with php. any other ideas?

do you know if your ISP requires SSL encryption or anything? this is a pretty straight forward set up so you probably have put in wrong information into php.ini.


when i have run other mail servers or even a bulletin board that automatically sends out emails all i put in is the smtp info. i have that in the php.ini

here is the info from the mail part of php.info:

sendmail_from no value no value
sendmail_path no value no value
serialize_precision 100 100
short_open_tag On On
SMTP smtp.xxx.xxx.net smtp.xxx.xxx.net
smtp_port 25 25

the smtp info is correct
 
The mail function PHP sucks. It sends out HTML only mail which is then killed on 90% of the world's mailservers as spam.

I open a pipe to mutt.
 
If you have PEAR installed (and most recent versions of PHP have most of PEAR installed by default) there is a Mail package that allows you to specify the SMTP server to use on each call. I have used this on my own web site without any difficulty. Also, you might have problems with your ISPs SMTP server because they are typically locked down pretty tight to prevent spammers from turning them into zombies. Alot of SMTP servers get set up to require you to do a POP check first before allowing a send request, thus ensuring that the only people that can send mail are people that have e-mail accounts.
 
Originally posted by: Cerebus451
If you have PEAR installed (and most recent versions of PHP have most of PEAR installed by default) there is a Mail package that allows you to specify the SMTP server to use on each call. I have used this on my own web site without any difficulty. Also, you might have problems with your ISPs SMTP server because they are typically locked down pretty tight to prevent spammers from turning them into zombies. Alot of SMTP servers get set up to require you to do a POP check first before allowing a send request, thus ensuring that the only people that can send mail are people that have e-mail accounts.

my isp allows mambo(csm) and smf(forum) and phpbb2(forum) to send mail via smtp. i can also send it out if i use a mail server program that allows me to put in an external smtp server...
 
Originally posted by: Cerebus451
If you have PEAR installed (and most recent versions of PHP have most of PEAR installed by default) there is a Mail package that allows you to specify the SMTP server to use on each call. I have used this on my own web site without any difficulty. Also, you might have problems with your ISPs SMTP server because they are typically locked down pretty tight to prevent spammers from turning them into zombies. Alot of SMTP servers get set up to require you to do a POP check first before allowing a send request, thus ensuring that the only people that can send mail are people that have e-mail accounts.

how would i find out if i had pear? is it part of the php install?
 
Back
Top