473,233 Members | 1,393 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,233 software developers and data experts.

Sending Email

Ant
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send
mail, however it's not sending any emails.

I'm using it on a Windows 2003 server.

The simplest way to use this is
smtpMail.Send("fr**@here.com", to@there.com, "Message subject", "Message
Body")

I'm sending it to my own email address on a different server using a dummy
'from' email.

Does anybody have any experience with this. It sems simple enough...
Much thanks in advance
Ant
Nov 29 '05 #1
3 3561
Hi,

Did you set the SMTP server properly? And does that server allow
relaying for your other address?

Also, when you mean it is not sending emails, do you mean it throws an
exception, or it executes ok, but no email is sent?

-Lenard


Ant wrote:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send
mail, however it's not sending any emails.

I'm using it on a Windows 2003 server.

The simplest way to use this is
smtpMail.Send("fr**@here.com", to@there.com, "Message subject", "Message
Body")

I'm sending it to my own email address on a different server using a dummy
'from' email.

Does anybody have any experience with this. It sems simple enough...
Much thanks in advance
Ant

Nov 29 '05 #2
Ant
Hi Lenard,
No exceptions occur, just nothing comes into my email box. I now suspect
that it is being filtered by the corporate spam filter as I tried sending
another message via a 'real' email service & again I got nothing.

I am interested in your question:
Did you set the SMTP server properly? And does that server allow
relaying for your other address?
I didn't set this dev box up so are you suggesting that the server may be
incapable of sending emails? If so, are the settings in smpt IIS?

Thanks for your help
Ant
"Lenard Gunda" wrote:
Hi,

Did you set the SMTP server properly? And does that server allow
relaying for your other address?

Also, when you mean it is not sending emails, do you mean it throws an
exception, or it executes ok, but no email is sent?

-Lenard


Ant wrote:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send
mail, however it's not sending any emails.

I'm using it on a Windows 2003 server.

The simplest way to use this is
smtpMail.Send("fr**@here.com", to@there.com, "Message subject", "Message
Body")

I'm sending it to my own email address on a different server using a dummy
'from' email.

Does anybody have any experience with this. It sems simple enough...
Much thanks in advance
Ant

Nov 29 '05 #3
Hi,

I meant did you use SmtpMail.SmtpServer to specify which SMTP server you
want to use for mailing?

And the other question was directed at, if you know that this server
will let you relay mail for other addresses? Corporate email servers
often deny relaying, so you would not be able to use any address in the
to/from fields.

For testing applications that mail something I found the best way to be
installing the IIS SMTP server component locally (it is present in XP
and Server versions of Windows). Then you can allow yourself all rights
(localhost), and you can set it to send your mails directly (no
smarthost). This way (theoretically) no spam filter will catch it (at
least on the inside) and it will relay wherever you want to relay.

-Lenard

Ant wrote:
Hi Lenard,
No exceptions occur, just nothing comes into my email box. I now suspect
that it is being filtered by the corporate spam filter as I tried sending
another message via a 'real' email service & again I got nothing.

I am interested in your question:

Did you set the SMTP server properly? And does that server allow
relaying for your other address?

I didn't set this dev box up so are you suggesting that the server may be
incapable of sending emails? If so, are the settings in smpt IIS?

Thanks for your help
Ant
"Lenard Gunda" wrote:

Hi,

Did you set the SMTP server properly? And does that server allow
relaying for your other address?

Also, when you mean it is not sending emails, do you mean it throws an
exception, or it executes ok, but no email is sent?

-Lenard


Ant wrote:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send
mail, however it's not sending any emails.

I'm using it on a Windows 2003 server.

The simplest way to use this is
smtpMail.Send("fr**@here.com", to@there.com, "Message subject", "Message
Body")

I'm sending it to my own email address on a different server using a dummy
'from' email.

Does anybody have any experience with this. It sems simple enough...
Much thanks in advance
Ant

Nov 29 '05 #4

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

Similar topics

3
by: Paul Lamonby | last post by:
Hi, I am sending a file from the server as an email attachment. The file is being attached no problem and sending the email, but I get an error when I try to open it saying it is corrupt....
0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
3
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
7
by: bleachie | last post by:
Hey, I just need some help, my form seems to not send me all of the 'guestNames' and 'guestEmails' forms. i use this function to add more guestnames and guestemail fields based on the number of...
10
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area>...
31
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.