logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Email forwarding
Teslo
#1 Posted : Thursday, February 16, 2012 11:16:44 AM(UTC)
Rank: Member

Groups: Member
Joined: 10/18/2011(UTC)
Posts: 18
Points: 54
Location: Over the rainbow

Thanks: 3 times
Hi!

I have a .NET project in which I am using your .NET library for viewing, storing and managing emails, using IMAP.
I'm using IMAP_Client class, I can load the messages in a list view using fetchHandler, I can view them, even save them or included attachments.

I have one simple question: How do I forward a selected email from the list view to a given email address? Is it even possible?

Thanks,
Teslo.
ivx
#2 Posted : Thursday, February 16, 2012 4:02:53 PM(UTC)
Rank: Administration

Groups: Administration
Joined: 9/15/2006(UTC)
Posts: 1,946
Points: 5,711
Man
Location: Estonia

Was thanked: 68 time(s) in 68 post(s)
Hi,

You need to parse mime message, alter it as needed for forward, then you need to use SMTP client to send that message.
Teslo
#3 Posted : Thursday, February 16, 2012 4:08:32 PM(UTC)
Rank: Member

Groups: Member
Joined: 10/18/2011(UTC)
Posts: 18
Points: 54
Location: Over the rainbow

Thanks: 3 times
ivx;4551 wrote:
Hi,

You need to parse mime message, alter it as needed for forward, then you need to use SMTP client to send that message.



Can you give me a short example?

Thanks,
Teslo.
ivx
#4 Posted : Friday, February 17, 2012 8:08:56 AM(UTC)
Rank: Administration

Groups: Administration
Joined: 9/15/2006(UTC)
Posts: 1,946
Points: 5,711
Man
Location: Estonia

Was thanked: 68 time(s) in 68 post(s)

http://www.lumisoft.ee/l...oad/downloads/Examples/

IMAP client shows how to get message and parse ir.
SMTP client shows how to send it.
1 user thanked ivx for this useful post.
Teslo on 2/17/2012(UTC)
Teslo
#5 Posted : Friday, February 17, 2012 12:55:34 PM(UTC)
Rank: Member

Groups: Member
Joined: 10/18/2011(UTC)
Posts: 18
Points: 54
Location: Over the rainbow

Thanks: 3 times
Hi ivx,

Thanks for the reply! I've downloaded the examples you gave me, but I cannot send a message from SMTP Client.
It keeps giving me:

Code:

"Error: 550 5.1.3 Bad address syntax."


I know maybe it's a fool question, but how do the Smart Host should look like? What do I have to specify in the Smart Host textbox? Because "smtp.mydomain.com" is not working.

Thanks,
Teslo.
ivx
#6 Posted : Friday, February 17, 2012 3:47:38 PM(UTC)
Rank: Administration

Groups: Administration
Joined: 9/15/2006(UTC)
Posts: 1,946
Points: 5,711
Man
Location: Estonia

Was thanked: 68 time(s) in 68 post(s)
this error seems like you have invalid mail from or recipient address.
1 user thanked ivx for this useful post.
Teslo on 2/17/2012(UTC)
Teslo
#7 Posted : Friday, February 17, 2012 4:14:17 PM(UTC)
Rank: Member

Groups: Member
Joined: 10/18/2011(UTC)
Posts: 18
Points: 54
Location: Over the rainbow

Thanks: 3 times
Yep. The error was in the "From" element. I was giving the "From" only a name, like "John" and not a valid email address.

Thanks a lot, ivx! Have a nice day!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.048 seconds.