Hello,
I have a gmail email address. I'd like to wrap it in my adminCP (as in: I would like to send emails from my AdminCp using the @gmail.com adress).
Is it feasible, or should I just drop the idea?
Best.
rh
| SitePoint Sponsor |

Hello,
I have a gmail email address. I'd like to wrap it in my adminCP (as in: I would like to send emails from my AdminCp using the @gmail.com adress).
Is it feasible, or should I just drop the idea?
Best.
rh

You can specify a from address in the additional headers parameter of the mail() function.
See:
http://www.php.net/manual/en/function.mail.php
Basically you would use something like:
(the "\r\n" has to do with carriage returns and new lines in the message headers)PHP Code:mail($to, $subject, $message, "From: <your@gmail.com>\r\n");
CanisHosting - Web Hosting plans starting at $3.95 per month
Gmail is notorious for sending said mails to the Junk folder, so be aware of that.
Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

Thanks for the reply
StarLion: I'm not exactly sure what you mean...
Bookmarks