Page 1 of 1

Wont send right

Posted: Tue May 11, 2004 6:03 pm
by pinehead18
mail ($email, "Your account information at ", $body, "FROM:
support@l.com");

This code says the mail is from nobody@mydomain.com yet i tell it what email it is from.

Any ideas?
Thanks
Anthony

Posted: Tue May 11, 2004 6:47 pm
by Steveo31
Open the php.ini file and look for the sendmail_from line. Change it there.

Posted: Tue May 11, 2004 7:35 pm
by launchcode
FROM: should be lower-case, like:

"From: whoever@wherever.com" and it does make a difference. Also check a phpinfo() dump to see if you can actually send mail or not.

Cheers,

Rich

Posted: Tue May 11, 2004 8:50 pm
by pinehead18
Well it was working fine, but when i changed the email address it stopped working.

Other parts of the site with mail
are working..

Re: Wont send right

Posted: Tue May 11, 2004 9:19 pm
by patrikG
pinehead18 wrote:mail ($email, "Your account information at ", $body, "FROM:
support@l.com");

This code says the mail is from nobody@mydomain.com yet i tell it what email it is from.

Any ideas?
Thanks
Anthony
Change the sender to support@myTopLevelDomain.com - a one letter Top Level Domain is invalid and, if I remember correctly, PHP checks that since a couple of releases.

Posted: Wed May 12, 2004 7:53 am
by pinehead18
Well the problem with that is, it was support@mywebsite.com however, i changed it to one letter cuase i didn't want to display it.

Any other suggestions?

Posted: Wed May 12, 2004 8:13 am
by launchcode
Why would you want to hide the From address? Is this some kind of spam script or something?