Tweak SMTP Message

16 views
Skip to first unread message

earthwormgaz

unread,
May 15, 2015, 4:18:44 AM5/15/15
to vm...@googlegroups.com
Hi,

I'm wanting to get an email by acting as an SMTP server, tweak the text and maybe the attachment names, and then forward the message on to another SMTP server.

Can anyone advise me how much work this is likely to be with this library, and if there's any relevant example source for this?

Cheers,

Gaz

Vincent Richard

unread,
May 18, 2015, 3:14:34 PM5/18/15
to vm...@googlegroups.com
Hi!

VMime can handle all of this, except the SMTP server part. You will have to use another library for this work. Then, when you get a message, you can parse it, modify the header fields, regenerate it to a MIME message then forward it to another SMTP server.

Have a look at the examples that come in the "example" directory of the source tree.

Vincent
Reply all
Reply to author
Forward
0 new messages