Anyhow, let me explain the problem: I create a message and send this one out via swiftmailer,
which works great already but now: I have to move that message into a IMAP folder / database.
So my question is: is there a way to make swiftmailer output the complete created message,
including mime, attachments etc.?
Anyhow, let me explain the problem: I create a message and send this one out via swiftmailer,
which works great already but now: I have to move that message into a IMAP folder / database.
So my question is: is there a way to make swiftmailer output the complete created message,
including mime, attachments etc.?
Thanks for your help
I'd probably suggest using the IMAP functions for this. if you want to see the source code that Swift is about to send you can (almost*) see it with this:
I switched the whole thing to swift mail now and well it works great.
For adding the to, from, cc, and stuff I use a simple str_replace and
this way the email becomes complete before I push it in via IMAP.
Well, thanks again and I just donated some money ..
I switched the whole thing to swift mail now and well it works great.
For adding the to, from, cc, and stuff I use a simple str_replace and
this way the email becomes complete before I push it in via IMAP.
Well, thanks again and I just donated some money ..
The reason I say that is because those methods will deal with things in the RFCs which a simple str_replace() may not do. Sorry, I should have mentioned those methods before. It's these methods which Swift uses when it sends the email.