473,499 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the correct string format to send email in VB ? See attachment

1 New Member
<body>
<%
Dim EMailFrom As String= "?"
Dim EMailTo As String="?"
Dim EMailSubject As String="?"
Dim EMailBody As String="?"

Dim MySmtpClient As New_
System.Net.Mail.SmtpClient ("localhost")

MySmtpClient.Send (EMailFrom, EMailTo,_
(EMailSubject, EMailBody)
%>
</body>
**Line 11 error Incorrect string format to send email
Please help to correct the string ?robcazzell@yahoo.com
Dec 30 '10 #1
1 1320
David Gluth
46 New Member
Not sure about your error message - your send command is wrong it should be there needs to be a space between the , and the _ for a continuation adn then your continuation opens a new "(" this line should read
Expand|Select|Wrap|Line Numbers
  1. MySmtpClient.Send(EMailFrom, EMailTo, _
  2.                 EMailSubject, EMailBody)
  3.  
Dec 31 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
7026
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....
7
16565
by: Susan Bricker | last post by:
I would like to generate a report (I have the report working already) using MS/ACCESS 2000 and then have the ability to send the report as an email attachment to my colleagues. I have looked...
5
3887
by: Abhishek Srivastava | last post by:
Hello All, I wrote the follownig program using System; using System.Web.Mail; public class MailHelper { public static void SendMail(string mailId, string author, string email,
2
1502
by: Aleksei Pashin | last post by:
Hi I am trying to send email message from my ASP.NET page using MailMessage É SmtpMail. Message must have the attachment file. When its size grows 150K I get an error message ...
3
2193
by: VB Programmer | last post by:
How do you fill in the "To" portion of a new mailmessage in ASP.NET so that it appears like "Joe Smith - ACME", versus joe@acme.com? Thanks!
3
4535
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
4
5484
by: clintonG | last post by:
TimeSpan utcOffset = localZone.GetUtcOffset(DateTime.Now); MessageLabel.Text = utcOffset.ToString( ); // returns -06:00:00 Instead of -06:00:00 I want -06:00. Apparently the custom formatter...
3
4667
by: sentiboy | last post by:
I am using the following code for sending email through mapi in VS 2005 environment: Public objSession As New MSMAPI.MAPISession Public objMessage As New MSMAPI.MAPIMessages ...
3
9727
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi There, I use follow code to send email inside VB.NET 2005. It does not work well. Error message of "Failure sending email" would occue. However, email was sent out sometimes. I am confused...
8
5460
reginaldmerritt
by: reginaldmerritt | last post by:
Hi, I have two report layouts that are used to run 12 different reports using where statement. for example DoCmd.OpenReport "SomeReport", _ acViewPreview, _ ...
0
7131
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
7007
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
7174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4919
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...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.