Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Path #23

Closed
gelinger777 opened this issue Nov 7, 2016 · 3 comments
Closed

Return Path #23

gelinger777 opened this issue Nov 7, 2016 · 3 comments

Comments

@gelinger777
Copy link

Dear Ivan, as you maybe know, its not possible to set Return-path header on SMTP protocol in email class of codeigniter. Do you think it would be possible to do when we replace it with your lib? Syntax will be the same?

$this->email->reply_to("xyz@yahoo.com","Sender Name","returnpath@email.com");

????

@ivantcholakov
Copy link
Owner

ivantcholakov commented Nov 7, 2016

I don't test the original CodeIgniter library, in my products I rely on this PHPMailer-based library only. I cannot make a comparison to confirm your observations.

What I can see is that your example is wrong, the method reply_to() has no third parameter. See instead

public function from($from, $name = '', $return_path = NULL)

Edit: And yes, it works.

@gelinger777
Copy link
Author

Yes, absolutely right! I wanted to try to send something but I am strangely getting

Error
Message: The file PHPMailerAutoload.php can not be found.

But the file is there. Any ideas what can be the problem?

@ivantcholakov
Copy link
Owner

https://github.com/ivantcholakov/codeigniter-phpmailer/blob/v1.2.13/libraries/MY_Email_3_1_x.php#L603

Before this lime place temporarily the following line:

echo APPPATH.'third_party/phpmailer/PHPMailerAutoload.php'; exit;

Make a test, see what path it outputs and whether there is a file on this path. Then remove the temporary line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants