So, in looking at my code, I set up the wwsmtp object just once. Then I set the items that don't change (like sender email, mail server, etc.). Then I enter my loop that sets up the items that change (recipient and message body) and sends the email.
So, please excuse my ignorance here, but it looks like I am doing this wrong. Though it would be awesome if my issue is just I also need to reset the header or something trivial like that. Let me know your thoughts.
I don't see that. While it could potentially be in there twice (there's a bug in the classic SMTP component that will add the header twice if you explicitly add it), certainly that many times has to be coming from something else (possibly the email client screwing up...
To check what the client is actually sending you can download Papercut, which is a local Email server that simply captures the raw SMTP message sent by the client.
http://papercut.codeplex.com/
This will show you exactly what wwSmtp is sending...
In my tests I only see the x-mailer header once in both the .NET and classic component.
+++ Rick ---
I'm still stuck on this issue. Anyone have any suggestions? Here is an example of what I am seeing in the header:
x-mailer:West Wind SMTP 5.0
x-mailer:West Wind SMTP 5.0
x-mailer:West Wind SMTP 5.0
x-mailer:West Wind SMTP 5.0
x-mailer:West Wind SMTP 5.0
x-mailer:West Wind SMTP 5.0
x-mailer:West Wind SMTP 5.0
x-mailer:West Wind SMTP 5. èH²
To: xxxx@yyyyy.com
(Note: I've removed a few dozen of the x-mailer lines for brevity.)
Again, I appreciate any ideas anyone may have on this.
Thanks,
Matthew
Running wwipstuff (and sometime wwdotnetbridge if I need SSL) to send emails. It was brought to my attention that the x-mailer line was showing multiple times in the header. My email client hides the header by default, but not everyone's does. Plus, I am starting to hear about some latency issues here of late. I wouldn't think this would hurt performance, but I am sure it doesn't help either. Anyway, the line says:
x-mailer:West Wind SMTP 5.0
If anyone has any ideas on having it only show once, I would greatly appreciate the assistance.
Thanks,
Matthew