How to get Email data? - WeOnlyDo Discussion board

How to get Email data? (General questions)

by Ronald, Monday, August 01, 2011, 03:56 (4862 days ago)

Hi there,
I just download the wodSmtpServer component, and until now i can't get the email body & subject. How can i Get them ?
I tried to use some events,such as:Mailto,mailfrom,MailReceived,HeadersReceived but i still can't get the message..
Is there something missed ?
Thanks,
Ronald

Re: How to get Email data?

by wodDamir, Monday, August 01, 2011, 09:23 (4861 days ago) @ Ronald

Hi Ronald,

Actually, wodSmtpServer doesn't manipulate data, so it doesn't have a parser included. However, you can still get whole message body by using Body property (Should be available in events through User.Message.Body.

You can find more info on Message object here: http://www.weonlydo.com/SmtpServer/Help/wodSmtpServer-SmtpMessage.html

Hope this helps.

Regards,
Damba

Re: How to get Email data?

by Ronald, Tuesday, August 02, 2011, 05:30 (4861 days ago) @ wodDamir

Hi Ronald,

Actually, wodSmtpServer doesn't manipulate data, so it doesn't have a parser included. However, you can still get whole message body by using Body property (Should be available in events through User.Message.Body.

You can find more info on Message object here: http://www.weonlydo.com/SmtpServer/Help/wodSmtpServer-SmtpMessage.html

Hope this helps.

Regards,
Damba

Hi Damba
thx for the reply
i had tried that one too, since it contains all the message, i rather confused to split between SUbject and body itself..
Is there any keyword i can use to split between them?
thanks,
Ronald

Re: How to get Email data?

by wodDamir, Tuesday, August 02, 2011, 09:22 (4860 days ago) @ Ronald

Ronald,

All the messages should have a blank line between the Headers and the actual Body. That blank line is used as a separator, so you can try using it to split contents.

Regards,
Damba