Author Topic: Admin email address as "Name <youremail@address.com>"  (Read 4427 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Admin email address as "Name <youremail@address.com>"
« on: November 20, 2002, 06:23:53 PM »
I was trying do this way so users would receive emails from admin that shows the name I put, in "From: ", not email address.
yes, it works, but in field "To: " users receive " > " nothing else. instead of that was supposed to be his (user's) email(?)...or mybe admin's email(?).

P.S. I'm using SMTP for sending emails.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline zipper

  • Newbie
  • *
  • Posts: 11
    • View Profile
Simular to my question.
« Reply #1 on: November 20, 2002, 10:04:12 PM »
This is perhaps simular to my problem.  :roll:
But you seem to have solved mine.
How did you get a "from" name instead of an adress?

My problem is at:
http://www.4homepages.de/forum/viewtopic.php?t=2768

/ Zipper

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Admin email address as "Name <youremail@address.com&
« Reply #2 on: November 20, 2002, 11:28:44 PM »
Use this way:
Code: [Select]
Your name <youremail@address.com>
but I warn u about problem it could couse^
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Admin email address as "Name <youremail@address.com&
« Reply #3 on: February 16, 2003, 08:03:57 PM »
Quote from: V@no
Use this way:
Code: [Select]
Your name <youremail@address.com>
but I warn u about problem it could couse^

this way has problem when email sent from admin control panel.
but its better "fix" little bit /includes/email.php:

Find:
Code: [Select]
$config['site_email']
Change it to this:
Code: [Select]
$config['site_name']." <".$config['site_email'].">"

and also, in /admin/email.php
Find:
Code: [Select]
   $site_email->set_to($config['site_email']);
Change to this:
Code: [Select]
   $site_email->set_to($config['site_name'], "<".$config['site_email'].">");
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)