Welcome to Geeklog, Anonymous Sunday, October 06 2024 @ 09:11 pm EDT

Geeklog Forums

Problems with Mail


smartin

Anonymous
Hello. I have problems sending mail. All seem correct. No errors. I use qmail-squirrelmail-mysql-php 4.3.1 PHP is ok, i use nuke and mail php function is ok. In mail logs I see that mail is sent, but there is no the field to: , so qmail don`t know where it must send e-mails Thanks for supports Really GL is very very nices
 Quote

Status: offline

rawdata

Forum User
Full Member
Registered: 02/17/03
Posts: 236
Geeklog uses a person's name in the "to" address line. A minority of people's mail servers don't like this. I don't know why. Try removing the name (not the email address) in the to line and see if that fixes your problem.
 Quote

Anonymous

Anonymous
Can you be a bit more specific when you refer to "the to line"? I've been trying to find it with no success. Thanks
 Quote

Status: offline

rawdata

Forum User
Full Member
Registered: 02/17/03
Posts: 236
I'm not sure which areas you're even referring to as having problems. So, I'll use the mail a story to someone as an example. The mail function has this format: mail(to_address,subject,message,headers) There's also a fifth parameter but GL doesn't use it. The "to_address" in the mail function above contains the recipient's name plus email address or email address alone. In most places where the mail is used, GL inserts the person's name. For example, in the function mailstory (which is located in profiles.php) this line applies: $mailto = $to.' <'.$toemail.'>'; The $to represents the person's name and the $toemail is his email address. If it contained real data, it would look like this: $mailto = John Doe <johndoe@foo.bar>; What I suggested was removing the name portion and leaving just the address to see if it fixes your problem. In this particular case, the line would be changed to this: $mailto = $toemail; If it contained real data, it would then look like this: $mailto = johndoe@foo.bar; In other locations, the code for mailing may look slightly different but it's always in the same format as shown above -- to_address, subject, message, headers. There are one or two places where GL does not use the name in the to_address. I can't remember which ones they are right now. Try removing the name from one of the places where the mail doesn't work for you and see if this fixes the problem.
 Quote

All times are EDT. The time is now 09:11 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content