473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How can we mail some file without mentioning the SMTP server addre

Hi everyone,

I am working on an application, where I need to mail some xml files as
attachments. I tried to use System.Diagnostic.Process class but it does not
provide any help for attaching a file automatically. Then I resorted to
System. Web namespace but here also it does not take the SMTP server's
address automatically. I have to mention it. The application on which I am
working is a general purpose application and user might not be knowing the
server's address. Is there anyway through which it can take the server's
address automatically?
All responses are welcome.

Mar 6 '06 #1
6 1508

create a webservice on your corporate server that receives the messages and
send them to the correct recipients

regards

Michel Posseth [MCP]

"Dushyant" <Du******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
Hi everyone,

I am working on an application, where I need to mail some xml files as
attachments. I tried to use System.Diagnostic.Process class but it does
not
provide any help for attaching a file automatically. Then I resorted to
System. Web namespace but here also it does not take the SMTP server's
address automatically. I have to mention it. The application on which I am
working is a general purpose application and user might not be knowing the
server's address. Is there anyway through which it can take the server's
address automatically?
All responses are welcome.

Mar 6 '06 #2
Hi,
Not sure I understand exactly what you want, but I think I did something
similar, emailing PDF's (Invoices) to customers from our database.

I used an activex component called ADDEMAIL from Traysoft you can get a demo
from http://www.traysoft.com/downloads.htm

You can set the SMTP server and attachfiles in code.

Paul
"Dushyant" <Du******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
Hi everyone,

I am working on an application, where I need to mail some xml files as
attachments. I tried to use System.Diagnostic.Process class but it does
not
provide any help for attaching a file automatically. Then I resorted to
System. Web namespace but here also it does not take the SMTP server's
address automatically. I have to mention it. The application on which I am
working is a general purpose application and user might not be knowing the
server's address. Is there anyway through which it can take the server's
address automatically?
All responses are welcome.

Mar 6 '06 #3
Hi Paul,

I am sorry I did not make my question clear. What I actually want - I do not
want to mention SMTP server's address in my application. I want my
application to take it on its own. Users, who will be using my application,
might not be knowing their SMTP server's address but they should be able to
mail these files to other persons by just mentioning their e-mail addresses.
Can it be possible thorugh any way?


"Paul" wrote:
Hi,
Not sure I understand exactly what you want, but I think I did something
similar, emailing PDF's (Invoices) to customers from our database.

I used an activex component called ADDEMAIL from Traysoft you can get a demo
from http://www.traysoft.com/downloads.htm

You can set the SMTP server and attachfiles in code.

Paul
"Dushyant" <Du******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
Hi everyone,

I am working on an application, where I need to mail some xml files as
attachments. I tried to use System.Diagnostic.Process class but it does
not
provide any help for attaching a file automatically. Then I resorted to
System. Web namespace but here also it does not take the SMTP server's
address automatically. I have to mention it. The application on which I am
working is a general purpose application and user might not be knowing the
server's address. Is there anyway through which it can take the server's
address automatically?
All responses are welcome.


Mar 6 '06 #4
I'm not much of a mail expert, but the activex does allow you to send the
message directly from the users PC, without specifying a SMTP server.
I'd be lying if I said I understand exactly how it works, but when you
install the demo, theres an example program, both compiled and uncompiled
that shows you it working.

I have used the activex module in direct mode on our company network and the
mail was delivered successfully, but I have also tried using it from home
and my ISP (AOL) prevented the mail from being delivered as it suspected I
was a spammer.
Hope this helps.
Paul


"Dushyant" <Du******@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...
Hi Paul,

I am sorry I did not make my question clear. What I actually want - I do
not
want to mention SMTP server's address in my application. I want my
application to take it on its own. Users, who will be using my
application,
might not be knowing their SMTP server's address but they should be able
to
mail these files to other persons by just mentioning their e-mail
addresses.
Can it be possible thorugh any way?


"Paul" wrote:
Hi,
Not sure I understand exactly what you want, but I think I did something
similar, emailing PDF's (Invoices) to customers from our database.

I used an activex component called ADDEMAIL from Traysoft you can get a
demo
from http://www.traysoft.com/downloads.htm

You can set the SMTP server and attachfiles in code.

Paul
"Dushyant" <Du******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
> Hi everyone,
>
> I am working on an application, where I need to mail some xml files as
> attachments. I tried to use System.Diagnostic.Process class but it does
> not
> provide any help for attaching a file automatically. Then I resorted to
> System. Web namespace but here also it does not take the SMTP server's
> address automatically. I have to mention it. The application on which I
> am
> working is a general purpose application and user might not be knowing
> the
> server's address. Is there anyway through which it can take the
> server's
> address automatically?
> All responses are welcome.
>


Mar 6 '06 #5

Afaik

the only way you can acomplish this is handling the sending of the e-mail on
a server that you control
scenario user starts you program and sents e-mail , the message is send over
http to a webservice , this webservice now sends the actuall message

"Dushyant" <Du******@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...
Hi Paul,

I am sorry I did not make my question clear. What I actually want - I do
not
want to mention SMTP server's address in my application. I want my
application to take it on its own. Users, who will be using my
application,
might not be knowing their SMTP server's address but they should be able
to
mail these files to other persons by just mentioning their e-mail
addresses.
Can it be possible thorugh any way?


"Paul" wrote:
Hi,
Not sure I understand exactly what you want, but I think I did something
similar, emailing PDF's (Invoices) to customers from our database.

I used an activex component called ADDEMAIL from Traysoft you can get a
demo
from http://www.traysoft.com/downloads.htm

You can set the SMTP server and attachfiles in code.

Paul
"Dushyant" <Du******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
> Hi everyone,
>
> I am working on an application, where I need to mail some xml files as
> attachments. I tried to use System.Diagnostic.Process class but it does
> not
> provide any help for attaching a file automatically. Then I resorted to
> System. Web namespace but here also it does not take the SMTP server's
> address automatically. I have to mention it. The application on which I
> am
> working is a general purpose application and user might not be knowing
> the
> server's address. Is there anyway through which it can take the
> server's
> address automatically?
> All responses are welcome.
>


Mar 6 '06 #6
Dushyant wrote:
Hi Paul,

I am sorry I did not make my question clear. What I actually want - I do not
want to mention SMTP server's address in my application. I want my
application to take it on its own. Users, who will be using my application,
might not be knowing their SMTP server's address but they should be able to
mail these files to other persons by just mentioning their e-mail addresses.
Can it be possible thorugh any way?


If you need to use the SMTP server of their provider you have almost no
way of knowing what that server will be. On my computer at home I don't
use an MS mail or browser program, so how would you even know where to
look for that information (you don't)?

Like others have mentioned, you'll need to use a server that you control
if you really don't want users to config the SMTP to use.

That leaves a question. How would they not know that information if they
have setup their mailprogram. If your program is for corporate use, you
could always refer to the network administrator. Otherwise, let them
contact their ISP.

Or is the real reason you don't want the user entering this kind of
information because you want to email information covertly without the
knowledge of the user? I may be paranoid, but mail server info is
supplied by any decent ISP, so it shouldn't be a problem for people to
obtain this info.

--
Rinze van Huizen
C-Services Holland b.v
Mar 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: martin | last post by:
Just the simplest invocation with hard coded parameters, followed by echoing a message, hangs for exactly 1 minute. ("defaulttimeout" in php.ini is set to 30 (seconds)). If I don't wait, and...
3
by: Shannon Clyde | last post by:
SMTP + relay + auth in an IPSEC tunnel to connect to our primary SMTP mail server (GroupWise) from the Web server looks like it would work fine, but is it the best way? I am aware of CDOSYS and...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
5
by: Pascal Cloup | last post by:
Hello, I just want to send an e-mail from my windows form application without specifying SmtpServer. On my computer, when i specify my smtpserver, SmtpMail.Send( aMail ) works fine, but...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
2
by: Claire | last post by:
I'm a noob at emailing from code and I need to add email capabilities to my application. The following code completes without exceptions but I'm not receiving any test emails. How do you debug...
11
by: Ed Bitzer | last post by:
I have been able using the namespace System.Web.Mail and its method Smtp.mail.send to mail simple text messages to a small group within our 55 and older community. I need help expanding the...
7
by: mukeshrasm | last post by:
Hi I am no able to send mail and it is giving this error Warning: mail(): SMTP server response: 530 5.7.3 Client was not authenticated in c:\inetpub\wwwroot\eshop\includes\classes\email.php on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.