Web Connection
SMTP DeliveryMethod
Gravatar is a globally recognized avatar based on your email address. SMTP DeliveryMethod
  n/a
  All
  Sep 19, 2014 @ 02:52pm
Hi.

I'm wondering if there is a way I can set DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory when using wwsmtp from my FoxPro program? If so, how would I write the piece of code to direct email to a folder such as "C:\Users\myuser\Documents\test_email"?

Thank you,
Loraine

Gravatar is a globally recognized avatar based on your email address. Re: SMTP DeliveryMethod
  Rick Strahl
  Loraine
  Sep 22, 2014 @ 03:28pm
Loraine,

Yes you can do that by using losmtp.addheader()...

Rick



Hi.

I'm wondering if there is a way I can set DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory when using wwsmtp from my FoxPro program? If so, how would I write the piece of code to direct email to a folder such as "C:\Users\myuser\Documents\test_email"?

Thank you,
Loraine



Rick Strahl
West Wind Technologies

Making waves on the Web
from Hood River

Gravatar is a globally recognized avatar based on your email address. Re: SMTP DeliveryMethod
  n/a
  Rick Strahl
  Sep 22, 2014 @ 06:37pm
Hi Rick,

Thanks for the reply. I am pretty new to this and still a bit confused. When using the basic properties of wwsmtp I can send email just fine. I was hoping, however, to implement an option to send emails to a test folder rather than actually emailing them out. I found several references to the following code for standard smtp settings which seems like what I would want. It looks simple, but I don't understand how to code .addheader or any other way to accomplish this in wwsmtp. Can you help me more with the code, or are these settings not available from wwsmtp?

<smtp
deliveryMethod="specifiedPickupDirectory"
from="from address">
<specifiedPickupDirectory>Your folder here</specifiedPickupDirectory>
</smtp>

Thanks for your help,
Loraine


Loraine,

Yes you can do that by using losmtp.addheader()...

Rick



Hi.

I'm wondering if there is a way I can set DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory when using wwsmtp from my FoxPro program? If so, how would I write the piece of code to direct email to a folder such as "C:\Users\myuser\Documents\test_email"?

Thank you,
Loraine



Gravatar is a globally recognized avatar based on your email address. Re: SMTP DeliveryMethod
  Rick Strahl
  Loraine
  Sep 22, 2014 @ 07:03pm

Sorry I didn't know what you were referring to in your description. I figured you were referring to an HTTP header, but I see you actually are talking about a .NET configuration option.

I'm not sure offhand of the configuration required for this but what you're pointing out is the System.Net configuration section in the application configuration file. .NET will read this from YourApplication.exe.config or from VFP9.exe.config. So those settings that you are reading you can configure in that application configuration file. I've never used that option so I'm not sure how that works or how it needs to be configured exactly - check online for those options.

FWIW, the best way I know of on how to test emailing is to use PaperCut (http://papercut.codeplex.com/) which is a local SMTP server that runs on your local machine and that simply captures the emails you sent - you can check out the messages in their raw format to see what was sent. You can start it up then send email messages to localhost or 127.0.0.1 or your machine name and you can check them out there.

+++ Rick ---


Hi Rick,

Thanks for the reply. I am pretty new to this and still a bit confused. When using the basic properties of wwsmtp I can send email just fine. I was hoping, however, to implement an option to send emails to a test folder rather than actually emailing them out. I found several references to the following code for standard smtp settings which seems like what I would want. It looks simple, but I don't understand how to code .addheader or any other way to accomplish this in wwsmtp. Can you help me more with the code, or are these settings not available from wwsmtp?

<smtp
deliveryMethod="specifiedPickupDirectory"
from="from address">
<specifiedPickupDirectory>Your folder here</specifiedPickupDirectory>
</smtp>

Thanks for your help,
Loraine


Loraine,

Yes you can do that by using losmtp.addheader()...

Rick



Hi.

I'm wondering if there is a way I can set DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory when using wwsmtp from my FoxPro program? If so, how would I write the piece of code to direct email to a folder such as "C:\Users\myuser\Documents\test_email"?

Thank you,
Loraine





Rick Strahl
West Wind Technologies

Making waves on the Web
from Hood River

Gravatar is a globally recognized avatar based on your email address. Re: SMTP DeliveryMethod
  n/a
  Rick Strahl
  Sep 22, 2014 @ 07:25pm
Thanks for setting me straight. I appreciate the suggestions and quick response.

Loraine

Sorry I didn't know what you were referring to in your description. I figured you were referring to an HTTP header, but I see you actually are talking about a .NET configuration option.

I'm not sure offhand of the configuration required for this but what you're pointing out is the System.Net configuration section in the application configuration file. .NET will read this from YourApplication.exe.config or from VFP9.exe.config. So those settings that you are reading you can configure in that application configuration file. I've never used that option so I'm not sure how that works or how it needs to be configured exactly - check online for those options.

FWIW, the best way I know of on how to test emailing is to use PaperCut (http://papercut.codeplex.com/) which is a local SMTP server that runs on your local machine and that simply captures the emails you sent - you can check out the messages in their raw format to see what was sent. You can start it up then send email messages to localhost or 127.0.0.1 or your machine name and you can check them out there.

+++ Rick ---


Hi Rick,

Thanks for the reply. I am pretty new to this and still a bit confused. When using the basic properties of wwsmtp I can send email just fine. I was hoping, however, to implement an option to send emails to a test folder rather than actually emailing them out. I found several references to the following code for standard smtp settings which seems like what I would want. It looks simple, but I don't understand how to code .addheader or any other way to accomplish this in wwsmtp. Can you help me more with the code, or are these settings not available from wwsmtp?

<smtp
deliveryMethod="specifiedPickupDirectory"
from="from address">
<specifiedPickupDirectory>Your folder here</specifiedPickupDirectory>
</smtp>

Thanks for your help,
Loraine


Loraine,

Yes you can do that by using losmtp.addheader()...

Rick



Hi.

I'm wondering if there is a way I can set DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory when using wwsmtp from my FoxPro program? If so, how would I write the piece of code to direct email to a folder such as "C:\Users\myuser\Documents\test_email"?

Thank you,
Loraine





© 1996-2024