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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Return-Path in emails
Pages: [1]

Author Topic: Return-Path in emails  (Read 1165 times)

chaos21in

  • Guest
Return-Path in emails
August 10, 2007, 06:00:17 am
Hi guys,

I need a small help with php mail function. The thing is i am trying to send some emails using my php email program using mail() function and it keep ending up in spam folder at yahoo and gmail. When i try with civiCRM "Send email to Contacts" facility after searching contacts it works fine. I checked the full header of emails sent via my program and mail sent by civiCRM to same email id. The only reasonable difference i could find is difference in "Return-Path:" and "X-AntiAbuse: Sender Address Domain -  " . Note that civicrm i am using on same server from where i am trying to send emails using my own php scripts, which is a shared hosted server, which has different domain address as of my own website.

When i choose civiCRM the "Return-Path:" is set as emailid@mydomain.com and "X-AntiAbuse: Sender Address Domain -  "  as mydomain.com, but when i try with my own script it says nobody@hostingsite.com in "Return-Path:" and in "X-AntiAbuse: Sender Address Domain -  " as server2.hostingsite.com .

I tried using "Return-Path: <emaild@mydomain.com>" in the header of my email, but it doesnt work. I was just wonder how civiCRM is doing it.

Any idea? Please help.

regards,
--rafi

 

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: Return-Path in emails
August 10, 2007, 12:00:34 pm

rafi:

1. check and understand the code in CRM/Contact/Form/Task/Email.php

2. if the above does not help, ask for help in the PEAR forums/mailing list

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

chaos21in

  • Guest
Re: Return-Path in emails
August 13, 2007, 05:12:50 am
Hi lobo,

Thanks for the reply. I did go through the Email.php file you are mentioning but couldnt find my answer. Maybe it is a little to complex for me to understand. And by the way do you have any link for the PEAR forums/mailing list?

Thanks

--rafi

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Return-Path in emails

This forum was archived on 2017-11-26.