Forum Moderators: coopster

Message Too Old, No Replies

Setting up Mail with PHP

problems configuring mail for php script

         

theroadislong

4:41 pm on Jun 30, 2007 (gmt 0)

10+ Year Member



Hi,

I am using a PHP template for a classifieds site. I edited the config file, and it will not send verification emails, and if I try to send an email to a poster, that email does not arrive either.

Here are the snippets of the config file that I think are the most relevant. What format should I put the email address in? What part of the system is actually sending the email (i know, i am new at this, please forgive me) the text you see are the placeholders given.

// Site email address

$site_email = "site@localhost";

// From address to use for mails sent using the contact form

$contactmail_from = "forward@localhost";

Any help would be appreciated!

dreamcatcher

6:47 pm on Jun 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi theroadislong,

Welcome to Webmaster World. :)

Did you try altering those two variables to use your actual e-mail address?

dc

venelin13

8:29 pm on Jun 30, 2007 (gmt 0)

10+ Year Member



Try to use email addresses from the same domain name. For example, if your classifieds site domain name is domain.com you should use an email address like info@domain.com

Some of the hosting companies applys this rule in order to keep their servers spamers-free.

theroadislong

2:18 am on Jul 1, 2007 (gmt 0)

10+ Year Member



thanks for the replies!

I tried putting in a domain email address - Before (when i didnt even have a full email address listed) the system came back with the message "An email verification has been sent" After I added an email address matching the domain, it says:

Error sending confirmation mail

does it matter that my email nameservers are with google apps and my database is somewhere else? or is it just checking that domain matches (for spam reasons)? I know my questions are really dumb. nowhere in the config file does it ask for email login info - should it?

I am an adwords person - not a php person. will exchange advice if you need any adwords help, former googler here. (NOT a programmer, obvsly.)

thanks!

theroadislong

3:22 am on Jul 1, 2007 (gmt 0)

10+ Year Member



Ok, got it.

Thanks for your help.

It was the google apps issue with the email nameservers. I switched it to a localally hosted email domain, and it worked.

Maybe if I look into "premier" apps, I can figure a way to plug into the smtp there.

thanks again