How to get Email data? (General questions)
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?
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?
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?
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