mail server<

I am trying to send e-mail to users using a page I created on my site. I currently use the mail command, and have used it in the past on other hosts without problems. However this one seems to be a problem, I enquired as to what to use from the hosting company and they have told me;

Imap will not work, you need to use email script for your PHP and use mrvnet.kundenserver.de as out going server

I tried imap and mail but neither worked. Now I have no idea where to put the server in the mail command, and there are no predefined scripts for sending e-mail as part of the hosting, so I am presuming there is somewhere I can put the server.

Any help appreciatedunless you use some host tha tlets you setup your own php.ini file I don't think you can change the settings. they should have set it on the server itself. ask them where you put mrvnet.kundenserver.de as out going server.

so you use mail() but what did it do? what error did it give you and how did you write it?can't you use ini_set in your script to set that up?I use


mail($row['usr_email'], $subject, $detail,
"From:[email protected]\r\n");


if I put a die on it, it prints my condition. mail doesn't return an error as such, it returns true if a success and false if failed doesn't it?Originally Posted by Hammerstein04
"From:[email protected]\r\n"

I think that's wrong - you should only have /r/n if there is another header to follow...Thats not my problem though, this has worked on other sites using the exact same line.yeah I suppose you could use ini_set to do it. and HK, it is \r\n not /r/n :)

every server is different. yes if mail fails it will be false but you said it doesn't work, did it give an error saying it is not configured correctly? sure the email didn't go but maybe mail gave an error.

ini_set ( sendmail_path, "mrvnet.kundenserver.de")
ini_set ( SMTP, "mrvnet.kundenserver.de")

one of those should get it going if that is the problem. just stick that in the top part of the script.Thanks guys, I will try them and get back to you. If I don't put the die on it, it just acts like nothing is wrong. There is no error, no problem.than make sure you are getting an email address in the "to" field of mail.

$row['usr_email']

make sure that is populated.
 
Back
Top