PHP Classes

Smtp + Mime + Attachment

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Smtp + Mime + Attachment  >  (Un) Subscribe thread alerts  
Subject:Smtp + Mime + Attachment
Summary:Smtp + Mime + Attachment
Messages:3
Author:jsmb
Date:2010-04-16 10:18:04
Update:2010-04-16 20:01:48
 

  1. Smtp + Mime + Attachment   Reply   Report abuse  
Picture of jsmb jsmb - 2010-04-16 10:18:04
I would like to send a mime compliant message with an attachment using smtp.

I found all the pieces but can't get them to work together.

Do you have an example that does it all? (I found separate examples but I haven't figured out how to do it all at once!)

In addition I would like to set the following headers in this way:

From: EmailAAA@xxx.com
Reply-to: EmailAAA@xxx.com

Return-path: EmailBBB@yyy.com
Sender: EmailBBB@yyy.com

smtp username: EmailBBB@yyy.com

Note that there are two different email addresses from two different domains.

In another post you answered someone that, using the smtp class the Return-path is set to the same email as from, but this is not what I would like to have.

Thank you very much for any help

  2. Re: Smtp + Mime + Attachment   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2010-04-16 18:53:13 - In reply to message 1 from jsmb
Use this class with MIME message class:

phpclasses.org/mimemessage

  3. Re: Smtp + Mime + Attachment   Reply   Report abuse  
Picture of jsmb jsmb - 2010-04-16 20:01:48 - In reply to message 2 from Manuel Lemos
This the class I was trying to use. I think I was checking the wrong smtp example (test_smtp_mail) instead of test_smtp_message.

I will try tomorrow.

Thanks a lot.

S.