Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: Catherine on February 17, 2013, 08:26:56 PM

Title: From Line In Emails are being received as root@localhost. Help!
Post by: Catherine on February 17, 2013, 08:26:56 PM
When I am receiving emails from my contact form on my website, they are coming through with the persons name in the From line then root@localhost.

For example:   Subject    Random
                        From         sam <root@localhost>
                        To            Website Support
                        Date    Today 10:49 am
                        Priority    Normal

When I click Reply to sender it says "Please Add One Recipient"
Why are my emails being received as the persons name and  root@localhost?
I would like my recipients email address to automatically appear in the "From Line"

How do I make that happen?
Thanks,
Catherine
Title: Re: From Line In Emails are being received as root@localhost. Help!
Post by: JohnDoh on February 18, 2013, 05:15:48 AM
my guess is that in the code on your website that sends the email you never set the from header in the email you create so one is added automatically by the mail process. if you are using PHP then this page has some examples of how to add headers to the emails you are sending. http://php.net/manual/en/function.mail.php
Title: Re: From Line In Emails are being received as root@localhost. Help!
Post by: Catherine on February 18, 2013, 09:57:45 PM
I'm using wordpress and have a premium theme with a built in Contact Form.
I've used this theme many times without this problem so I'm really not sure what to do.
Any more suggestions?

Thanks,
Catherine