CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Profile Confirmation Emails - Change "From" Address
Pages: [1]

Author Topic: Profile Confirmation Emails - Change "From" Address  (Read 898 times)

ryanpitt

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Profile Confirmation Emails - Change "From" Address
November 20, 2009, 10:08:31 am
Hi All,
We have a number of profile forms which we use on an external web site to post data directly to CiviCRM. Once the form is filled out and submitted an email is generated and sent to addresses we specify on the profile.
Is there a way to make that email appear to come from the person who just filled in the form? (From Address) Their email address is included in the form and is a required field.
We are currently on Drupal and CiviCRM Version 3.0.2
Thank you
Ryan

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Profile Confirmation Emails - Change "From" Address
November 20, 2009, 10:47:18 am

you will need to modify the code to do so

check:

CRM/Profile/Form.php (search for commonSendMail) and follow the trail from there

note that quite a few smtp providers will reject the email since you are "spoofing" the from address

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Profile Confirmation Emails - Change "From" Address

This forum was archived on 2017-11-26.