A problem to send email using Smtp
I have a proble to send an email from asp.net
I do the following code to send an email:
MailMessage mail=new MailMessage();
mail.From="test@server.com";
mail.To="myemailaddress@server.com";
mail.BodyFormat=MailFormat.Html;
mail.Subject="testing...";
mail.Body="cool";
SmtpMail.SmtpServer="localhost";
SmtpMail.Send(mail);
But I dont' receive an email when I use this method. Why is that? How can I send an email?
Thanks in advance!
check and see if..
-your client-side code has no errors
-you imported the System.Web.Mail namespace
-your email is setup right
-your 'localhost' supports smtp..
hope this helps"programming open-source is programming communism."
I checked IIS it looks like localhost supports smtp(there is a default smtp server?!).
What do you mean I should check if my email is setup right?
Any other ideas.
Thanks
hi ,
you have to set relay in your smtp server , or your smtp server requires username &
password when you are trying to send and emial with .net mail object .
do the following :
go to access tab of of your smtp server properties
on last section there is a relay button , click on it
check all expet the list below . (the list must be blank)
its done .
now check your application , it should work .
ps: im using windows xp , in other version of windows , u have to do the same thing .
Hi,
Tak...
How to send email using Delphi?In the past, I used Jedi MAPI wrapper, but it won't work in Unicode Delphi where I get "General MAPI failure"
"
TmpEmail := TjclEmail.Create;
TmpResolve := False;
try
TmpResolve := TmpEmail.ResolveName(TmpStr_Name, TmpStr_Email, True);
except
// new code for Delphi unicode... Also gives mapi failure
end;
if TmpResolve then
TmpEmail.Recipients.Add(TmpStr_Email)
else
TmpEmail.Recipients.Add('smtp:' + TmpStr_Email)
;
TmpEmail.Recipients[0].Name := TmpEmail.Recipients[0].Address;
TmpEmail.Subject := 'bla bla...
Send Email with Indy and SSL [Edit]I must send a mail with Indy 10.0.1.1 and SSL
This is my code:
procedure SendEmail;
var
IdMessage: TIdMessage;
SMTP: TIdSMTP;
SSLHandler: TIdSSLIOHandlerSocketOpenSSL;
IdUserPassProvider: TIdUserPassProvider;
IdSASLCRAMMD5: TIdSASLCRAMMD5;
IdSASLCRAMSHA1: TIdSASLCRAMSHA1;
IdSASLPlain: TIdSASLPlain;
IdSASLLogin: TIdSASLLogin;
IdSASLSKey: TIdSASLSKey;
IdSASLOTP: TIdSASLOTP;
IdSASLAnonymous: TIdSASLAnonymous;
IdSASLExternal: TIdSASLExternal;
begin
IdMessage := TIdMessage.Create(nil);
try
IdMessage.ContentType := 'text/plain';
IdMessage.Charset := 'UTF-8';
IdMessage.Body.Text:='Prova di invio tramite SSL';
IdMessage.Sender.Text := 'giovanellip@gmail.com';
IdMessage.From.Name := 'Paolo Giovanelli';
IdMessage.From.Address := 'giovanellip@gmail.com';
IdMessage.ReplyTo.EMailAddresses := 'giovanellip@gmail.com';
IdMessage.Recipients.EMailAddresses := 'giovanellip@gmail.com';
IdMessage.Subject := 'Prova invio SSL';
IdMessage.Priority := TIdMessagePriority.mpHighest;
IdMessage.CCList.EMailAddresses := '';
IdMessage.ReceiptRecipient.Text := '';
IdMessage.BccList.EMailAddresses := '';
SMTP := TIdSMTP.Create(nil);
try
SSLHandler := TIdSSLIOHandlerSocketOpenSSL.Create(SMTP);
SSLHandler.MaxLineAction := maException;
SSLHandler.SSLOptions.Method := ...
Indy: Sending E-mails using SSLI am a newbie to Indy and want to send e-mail notifications from my app.
Below is my first shot code. It works with GMail but I want it to works with a resonable subset of existing SMTP-servers.
Will I have a chance?
I am probably committing several beginners errors, so correct me, please.
I am using Delphi XE2, Indy 10.5.8.0 (shipped with Delphi XE2) and openssl-1.0.0d-i386-win32.
{code}
unit UEmail;
interface
uses
UStrings {My unit: GetLocalComputerName}, Classes, IdBaseComponent,
IdComponent, IdTCPConnection, IdTCPClient, IdExplicitTLSClientServerBase,
IdMessageClient, IdSMTPBase, IdSMTP, IdMessage, IdSSLOpenSSL, IdGlobal;
type
TEmailData = class
edSMTPServer: string; //GMail: smtp.gmail.com
edSMTPPort: integer; //GMail: 465 or 587
edSSLConnection: boolean; //GMail: True
edSenderEmail: string; //GMail: you@gmail.com
edSMTPUserName: string; //GMail: you@gmail.com
edSMTPPassword: string; //GMail: GMail Password
edToEmail: string;
edCCEmail: string;
edSubject: string;
edSenderApp: string;
edPriority: TIdMessagePriority;
edBody: TStringList;
constructor Create;
destructor Destroy; override;
end;
procedure SendEmail(ED: TEmailData);
implementation
constructor TEMailData.Create;
begin
inherited;
edBody := TStringList.Create;
end;
destructor TEMailData.Destroy;
begin
edBody.Free;
inherited;
end;
procedure SendEmail(ED: TEmailData);
var
...
I can`t send email using Indy [Edit]I have such a exception:
+First chance exception at $7C812AFB. Exception class EIdSMTPReplyError with message 'RCPT first (#5.5.1)+
+'. Process Project1.exe (956)+
I use Indy 10 rev. 3670. C++ Builder 2009.
This exception appear on old project, but if I build a new project using Indy there is no problem. I tried to delete all components Indy and add them again to project but nothing changed. How can I change old project to work properly ?
IdMessage1->Clear();
IdMessage1->From->Name = "j.ai@ago.pl";
IdMessage1->From->Address = "j.a@ago.pl";
IdMessage1->Recipients->EMailAddresses = "j.a@ago.pl";
IdMessage1->Subject = "";
IdSMTP1->Host = "mail.ago.pl";
IdSMTP1->Password = "00000";
IdSMTP1->Username = "j.a@ago.pl";
IdSMTP1->Port = 25;
try
{
IdSMTP1->Connect();
}
catch ( const Exception& ) { ShowMessage("A"); return; }
try
{
if ( IdSMTP1->Connected() )
{
IdMessage1->MessageParts->Clear();
TIdAttachment* IdAtt = new TIdAttachmentFile( IdMessage1->MessageParts, "test.txt" );
IdSMTP1->Send( IdMessage1 );
delete IdAtt;
IdAtt = NULL;
IdSMTP1->Disconnect();
ShowMessage("OK");
}
}
catch ( const Exception& e ) { ShowMessage("B"); return; }
Edited by: Jacek Pawel on Jun 8, 2009 10:13 AM
<Jacek Pawe...
unable to send email out using non groupwise accountI seem to have a problem in that I installed Windows XP x64 and can't send
out email using a non Groupwise account.
When attempting to send out I get mail service not available. (It looks like
the MS messaging backend isn't loading for some reason).
Any idea's?
64 bit windows is not officially supported. HAve you tried this on another
computer?
--
Michael J. Bell
Novell Support Connection Volunteer Sysop
Author of Guinevere (http://www.openhandhome.com)
PLEASE: Do not e-mail me privately unless specifically asked.
I'm a volunteer, not a Novell employee!
All opinions and advice provided are MINE alone and NOT Novell's unless
specifically identified as such.
Novell does not officially monitor these forums.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement
"You've got a way to keep me on your side/You give me cause
for love that I can't hide/For you I know I'd even try to
turn the tide/Because you're mine, I walk the line"
Johnny Cash (RIP)
"John" <john@edd.com> wrote in message
news:fAO3f.2545$l%3.965@prv-forum2.provo.novell.com...
>I seem to have a problem in that I installed Windows XP x64 and can't send
>out email using a non Groupwise account.
>
> When attempting to send out I get mail service not available. (It looks
> like the MS messaging backend isn't loading for some reason).
>...
Problems sending emails with attachments in Indy SMTP in Delphi 2009Hi,
I'm working with Delphi 2009 fully updated (12.0.3420.21218 with Update Pack 3), and I had the original version of the Indy 10.2.5. All attachments were going with a file name ATT000043.dat, instead of the correct name. I updated to the latest Indy from the Dev Snapshot, and it went to version 10.5.7. However, now the attachment does not appear as an attachment at all, the the message appears as:
This is a multi-part message in MIME format
--HF2WOHttwwLp1TZg=_wwY6H2qbRC0RDTyU
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
H...
How to enable SSL for smtpclient when use Password Recovery control to send email
I can send email with secure connection (SSL) in my program; Web.config: <system.net> <mailSettings> <smtp from="fromaddress"> <network host="smtphm.sympatico.ca" password="password" userName="username" /> </smtp> </mailSettings> </system.net> ---------------------------------- Protected Sub SendEmail() '!!! UPDATE THIS VALUE TO YOUR EMAIL ADDRESS &nbs...
"SSL is not available on this server" Exception Sending Emails with IndyHi
I'm using the Indy (version 10.6.0.5122) TidSMTP component on Delphi XE6 to send emails (see component details below).
object SMTP: TIdSMTP
OnStatus = SMTPStatus
IOHandler = IdSSLIOHandlerSocketOpenSSL1
Host = 'smtp.gmail.com'
Password = '***'
Port = 587
SASLMechanisms = <>
UseTLS = utUseExplicitTLS
Username = 'username'
Left = 480
Top = 76
end
object IdSSLIOHandlerSocketOpenSSL1: TIdSSLIOHandlerSocketOpenSSL
Destination = 'smtp.gmail.com:587'
Host = 'smtp.gmail.com'
MaxLineAction = maException
Port = 587
DefaultPort = 0
SSLOptions.Mode = sslmUnassigned
SSLOptions.VerifyMode = []
SSLOptions.VerifyDepth = 0
Left = 480
Top = 24
end
I have the following issue: although it works fine on my computer (Windows 7, on which I have Delphi XE6 installed), I get the following exception on all computers (Windows Server 2012 Foundation, Windows 7) located at a different location when trying to send emails :
"SSL is not available on this server"
Can anyone help me find out what the problem is exactly?
Thanx in advance.
Mike wrote:
> I have the following issue: although it works fine on my computer
> (Windows 7, on which I have Delphi XE6 installed), I get the following
> exception on all computers (Windows Server 2012 Foundation, Windows 7)
> located at a different location when tryi...
Delphi XE2, Indy 10Dear folks
The following code is supposed to send a text string to a client that is listening on a set port and ip address. The connection works fine.
The problem is that nothing seems to be sent.
{code}
function TFCSelectForm.SendNitroMessage(NitroRequest: String): String;
var
sStrm: TMemoryStream;
begin
try
sStrm := TMemoryStream.Create;
try
sStrm.WriteBuffer(Pointer(NitroRequest)^,Length(NitroRequest));
// sStrm shows as () in the debugger
IdTCPClient1.IOHandler.Write(sStrm, 0, False);
sStrm.Position := 0;
finally
...
Creating Email Alias which would send email to select email accounts using HMC 4.0
Hello all,
I was wondering what is the best method of creating a email alias in exchange 2007. I tried using exchange 2007 console, but it seems the only way is to add the smtp address to each user. I did try a group, but it add's the default smtp address which I do not want there, and it complains when I try to remove it. I was wondering if there is a way from provision or exchange console....
Using Email InterfaceHi--
I recently set up a version of Bugzilla for my company (v 3.0.2) and I
want to use the email interface so I can submit bugs via email. I know
how to format an email in order to do this, but I don't know what
email address to send it to. Where do I find this email address/how
can I set it up?
Thanks
rmandal@gmail.com wrote:
> Hi--
>
> I recently set up a version of Bugzilla for my company (v 3.0.2) and I
> want to use the email interface so I can submit bugs via email. I know
> how to format an email in order to do this, but I don't know what
&g...
Sending email to non-registered email addressesHello,
I there a way to send email(add to a bug entry's cc list) to email
adresses that are not registered in the bugzilla system
Under Bugzilla Version 2.18rc3
Thanks
-wdj
On 4/22/05, Weddie Jackson <weddiedjackson@netscape.net> wrote:
> I there a way to send email(add to a bug entry's cc list) to email
> adresses that are not registered in the bugzilla system
No.
--
http://wurblzap.net/
Bugzilla hosting and professional support
On 4/22/05, Weddie Jackson <weddiedjackson@netscape.net> wrote:
> I there a way to send email(add to a b...
Using ALTAS to Send Email (Email Form)
Hello all.
I have yet to find anywhere an example on how one might use the underlying ATLAS API (not the fancy controls that come with it) to send a simple email from a simple webform.
Can anyone point one out for me? Or maybe someone has an example tucked away somewhere that they might want to let out ino the public?
Thanks,Andrew
There is nothing special about sending e-mail with "Atlas". On the client you can use a link with the "mailto:" pseudo protocol, to fire up the default e-mail client. See mailto protocol for more information.On the server you can use the features in the Syste...
Sending HTML Email Using EMAIL::MIME::CreateHTML------_=_NextPart_001_01C7D5F2.CEEC49EF
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I am using the Email::MIME:CreateHTML module to send html formatted
emails. It all works fine until I try to change the "To" line to a
scalar so that I can mass mail to different individuals. Has anyone
used this module in a manner like this before? Thanks,
my $email =3D travis_hervey@georgetowncollege.edu;
while(<DAT>)
{
$line =3D TRIM($_);
$html =3D $html . $_;
if($line eq "</b...
email in asp using CDONTS... cant send email
HELP!!! PLS!! I NEED REPLY NOW!! OR AS SOON AS POSSIBLE PLEASE....
IM DEVELOPING A WEBSITE USING ASP... in DREAM WEAVER... MS ACCESS DATABASE... MY OS IS WINDOWS XP PRO....
I CANT SEND AN EMAIL... I TEST MY WEBSITE USING IIS.. I HAVE AN INTERNET CONNECTION... CAN I POSSIBLY SEND AN EMAIL?? THERE IS AN ERROR WHEN I TRIED TO TEST SENDING AN EMAIL... IM ONLY USING ASP... NOT ASP .NET
Error Type:Microsoft VBScript runtime (0x800A01AD)ActiveX component can't create object: 'CDONTS.NewMail'
WHAT DOES IT MEAN?? HELP PLEASE.... WHAT SHOULD I DO?? WHAT ARE THE REQUIREMENTS.... PLEASE HELP....
Use the email adress in the users profile to send an email
Hi,
hope you cn help me. I am using the createuserwizard to create new users. In this template the users are asked for their email adress.
All is working fine, but how can I use the email adress the user entered during registration later in a session to send him an email?
I thought just "profile.email", but its wrong.
Hope you can help me, Chrissi
Hi Chrissi,
When you use the CreateUserWizard, you're creating a user through the current membership provider, which is different than Profiles. To get a user's email, tryDim myUser As System.Web.Security.Mem...
hide email addresses from email after using smtp.send()
hello , I have some kind of subscribe feature , the emails are saved in database so am using a sqldatareader and a loop , inside loop am adding the emails with msg.to.add() , but what is happening that all the emails are being shown ( in the to place) when a subscriber receives an email , but I dont want that , cause the subscriber shall not know email addresses of other subscribers , how to fix this thing ?!? thanks alot
place all the recipients on the BCC of the email. this prevents them from seeing the email of other BCC recipients Mike Banavige~~~~~~~~~~~~Need...
Send a message with a different way that send an email using outlookGuys I don't know what is happening with me or my outlook express, this is
the fouth time that I try to send this post and all are included in the
first one, so I had to change the title, I hope this is the last try
TIA
Osvaldo
"Osvaldo Valenzuela" <ovalenzuela@ias-tecnomex.com> wrote in message
news:...
Sorry if I post my problem again, I noted that I sent it with date of
yesterday, this is not my good day, thanks again.
"Osvaldo Valenzuela" <ovalenzuela@ias-tecnomex.com> wrote in message
news:...
Hi all, maybe it sounds very strang...
Non existing email address cancels sending to other email addresses
Hello ppl..
My WebApp sends emails to a series of email addresses without any problem... the problem is that when i send a email to a series of email addresses which contains a non existing email account... the email doesn't go at all.. Do you know what's the problem and what can be the resolution?
Thanks in advance
Bracoute
How are you running the email process? Is it running in multiple threads so that more than 1 is sending at a time? If not, this should take care of that. Perhaps checking the email addresses for validation before allowing them to be entered into the database. Please explain more on the non existing email account, I assume you mean something like name@blah without .com or something screwed up.Chris Paterra
are you sending one email to multiple addresses in one shot?
or
are you sending the same email individually to a list of email addresses ?
i.e.
is there one email with N number of recipients
or
N emails each with one recipient ?
Mike Banavige~~~~~~~~~~~~Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/
Hello...
Thanks for your replies... I've got one mail that i relay via IIS to many email addresses at one go... that is by putting multiple recipients (each of them followed by a ';')... Does that help?
Thanks in advance
bracoute
My email is relayed to a group of addresses (each seperated by a ;)... But if one of these email addresses doesn't exist,...
Get email address from DB and send email using VB
OK every time I figure something out on my own, there's 10 more things I can't seem to figure out. I feel like a VB moron. Ha. Anyway. Here's what I need to do...1. Retrieve the email addresses from my database table of people whose memberships to my organization has expired in the past month.2. Somehow plug those email addresses into a code to send them a prewritten, preformatted email.I have found an article on how to send an email using VB coding. I just don't know how I would send one email to every person whose membership has expired in the past month. Ideally, I'd like to be able to log into my page and click a button that would send the email to every person. Is this even possible? Here's the article I found if seeing that code helps at all... http://www.4guysfromrolla.com/webtech/080801-1.shtmlThanks in advance for any help.
Hi,append email ids in one string separated by semi colons and put the string in bcc property. and then send it....may be it worksbut
beware if usend these many emails then the receivers email providers
may list ur server's IP as spam source so then ur mails will be
delivered to junk email folder. Yahoo is most active in these
activities.Retrieve all data from database & fill dataset & then loop then
email address in to field. however dont forget to sleep the thread for
a while or else ur isp will treat u as spammer. also by putting each
address indiv. in to will not be treated as spam. Kunal MehtaWeb professionals who ...
How can I send an HTML format email using send mailDoes anyone know how to send an HTML formatted email using sendmail. I can
send plain text email OK. If I format the message using HTML the message
shows the HTML tags. I can't find any information regarding this on cpan.
Are there any other modules that have this capability? Any help is greatly
appreciated.
Jeff
I've sent you a private message with a script. I didn't think it would be
appropriate to post that much code to the list.
Agustin Rivera
Webmaster, Pollstar.com
http://www.pollstar.com
----- Original Message -----
From: "jeff" <we...
how to get the correct email format when sending email using sqldatareader
I'm getting the email address from an excel sheet.But i need to send the email to multiple peopleWhen printing the below i geta@a.com;b@b.com;;
But i want a@a.com;b@b.com;
i don't need the extra semicolon
Thanks
code below------
while (oledr.Read())
{
smail = oledr[0].ToString() + ";" + "<br>";
//smail += oledr[0].ToString() & ";";
//mail.To.Add(smail);
//this.Label1.Text = smail;
Response.Write(smail);
}
If oledr[0].ToString() contains only one email address (and not a few), then you can do it this way:while (oled...
Send email by using email set at google app (URGENT)
Hi there, Currently I facing a problem to send email out.right now my customer email has been pointed to use google apps, then i trying to send email use it. but i am getting this message for port 587 "The SMTP server requires a secure connection or the client was not
authenticated. The server response was: 5.7.0 Must issue a STARTTLS command
first." and "The operation has be timed out" for port 467.I have enable the SSL, but I still getting the same result.
Just read this forum post for few possible chances.
http://www.userscape.com/helpdesk/index.php...