I tried sending email to a local email user via the messenger, but the mail was not delivered. I only saw the mail on the message wall (though). The local email (from Mercury Mail via XAMPP) is what I use to test any email application I develop on my computer before finally moving it to the remote server. I use local email to test contact forms that I add to websites. I even synchronized it with Mozilla Thunderbird. I don’t know why the Gibbon messenger did not deliver the message. Please help look into this.
Thanks for your response in advance Ross.
Gibbon simple calls some PHP mailing software, which does all the backend work of actually getting the mail out. Have you checked your PHP logs to see if there are any messages related to email? I guess SMTP (or some other mail sender) is not correctly configured.
Thanks for the prompt response. I checked the php error log to see if there is any error related to the mail function in gibbon or to any other function from gibbon at all, there is none there. I just finished sending another message on the messenger now and did the checking.
As for my SMTP not correctly configured for php, that’s not the case. I used it to send email from a contact form on a website in my localhost today. It’s working. The following lines are all that are required in the php ini file to work with a local mail server
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
; SMTP = localhost [This is the original]
; smtp_port = 25 [This is the original]
SMTP = localhost
smtp_port = 25
Or is there any other setting I need to add so that the mail function in gibbon will work?
OK, that is an interesting case. If PHP is not returning any errors, then presummably, the message is being accepted by SMTP. Does the SMTP log show any errors?
There is nothing wrong with my local servers. I did not see any error in the Mercury log as well. I think the reason the mail was not sent is that the mail sender code of Gibbon is configured to only send mails to email recipients in the format “firstname.lastname@example.org”. I am using a local mail server and so my email addresses are in the form “username@localhost”. By its architecture, Gibbon will not even allow an email in the format for localhost to even be inputted. In my own case, I was able to insert the email addresses directly from phpmyadmin. If this is the way you actually wrote the code, then don’t worry, it will work well with the mail server on the actual remote host.
Ah, this is interesting, and I had not considered this. Gibbon uses two off-the-shelf mail functions, and these may be configured not to use localhost addresses. They are mail and PHPMailer if you want to look into them more. As you say, with full addresses, on your final host, it should work.