Question about Computers & Internet

1 Answer

How can i send mail in visual basic 6 using smtp.gmail.com and vbsendmail.dll.

Posted by on

Ad

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

  • Master
  • 733 Answers

You can try this :
<%
On Error Resume Next
Dim Subject, Body, SenderEmail, RecipientEmail, SMTPServer, SMTPusername, SMTPpassword
SenderEmail = "Your Name <youremail>"
SMTPserver = "smtp.gmail.com"
SMTPusername = "your full email address"
SMTPpassword = "your password"
Subject = "Hello"
Body = "This is a test. Please ignore."
RecipientEmail= "any email address"

sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "smtpauthenticate") = 1
.Item(sch & "smtpusessl") = True
.Item(sch & "smtpserver") = SMTPserver
.Item(sch & "sendusername") = SMTPusername
.Item(sch & "sendpassword") = SMTPpassword
.Item(sch & "smtpserverport") = 465
.Item(sch & "sendusing") = 2
.Item(sch & "connectiontimeout") = 100
.update
End With

Const cdoSendUsingPickup = "c:\inetpub\mailroot\pickup"
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
cdoMessage.From = SenderEmail
cdoMessage.To = RecipientEmail
cdoMessage.Subject = Subject
cdoMessage.TextBody = Body
cdoMessage.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
If Err.Number <> 0 Then
Response.Write (Err.Description& "<br><br>")
end if
%>

tested by some friends and is working fine.

Posted on Jan 28, 2010

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya Technician can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repair professionals here in the US.
click here to Talk to a Technician (only for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How to configure gmail SMTP setting for outgoing server?


Process to configure gmail SMTP setting for outgoing server

Gmail provides email services to user.It is used for sending and receiving mail.It is freely used by users.It is developed by Google.If you create an account an G mail then you can directly open your Google account there is o need to create another account. It provides unlimited space to user. For some Business application Gmail is used as paid .Gmail is used as open source.

When you use Gmail then you need to check that your server is connected to Gmail or not.You should know that Gmail SMTP server is used for sending email from your Gmail account. SMTP is Simple Mail Transfer Protocol ,it is used for every email account but it is not same for all the accounts.so for Gmail Account you need to configure Gmail SMTP settings then you need to follow these steps:

First you need to go in the Email client software then you have to go in the outgoing mail

first you need to check that your Gmail SMTP server Address that should be SMTP.gmail.com.

Then you have to enter your Gmail SMTP user name ,your SMTP user name should be same as your Gmail address.

Then You have to enter SMTP Gmail password,it will be your Gmail password.

Now you have to enter Gmail SMTP port number for TLS and secure socket layer connection.

Then you have to select "Use SMTP authentication".

Then you have to click on YES if if you see that Gmail SMTP TLS/SSL required.

Then your SMTP server will be set to your Gmail client.

You can easily configure your SMTP Gmail Setting with the use of above steps but if still you are not able to configure your SMTP settings then you can contact Gmail Technical Support for any query .They will provide you best solution.

GET INSTANT SUPPORT FOR YOUR GMAIL ISSUES NOW

Jun 15, 2017 | Computers & Internet

4 Answers

How do I install my default mail client for my e mails I have windows 7?


There are many websites that already provide this answer.

Nov 04, 2014 | Google Gmail

1 Answer

Outgoing mail server problem


Most likely the send mail port is blocked in your firewall.

If your settings allow you to set a port number. The default is port 25, but the gmail smtp server does not use that port, try setting to port 587 or port 465.

Again, make sure whatever port you are using is not blocked in your firewall nor by your internet service provider.

Mar 29, 2014 | gmail.com

1 Answer

Gmail access


In the e-mail account settings you should use the following:
IMAP server address: imap.gmail.com
user name: exactly what you use for logging in gmail on a computer, such as my.name@gmail.com
password: your password
IMAP port: 993 (This is important. Otherwise it will not work)
encryption/security: TLS/SSL

In order to send mail, you also need to give the program these SMTP settings:
SMTP server address: smtp.gmail.com
port: 465 (once again, an important number)
security: TLS/SSL

I hope this helps.

Oct 20, 2013 | Samsung GT-E2550 Cell Phone

1 Answer

I am unable to setup my email wizard in my samsung corby


Standard instructions for email inbox setup:

i have finished my corby pro email settings & i can send and recieve emails. the problem with only recieving & not able to send is the confusion between port numbers. in secure connection box three options available ' off ', ' SSL ', ' TLS '. use only SSL or TLS because the port numbers for SSL & TLS differs. just try this & you will be able to send and recieve emails.

                                                    SMTP port - 465

                                                    POP3 port - 995

Enable POP in Gmail. Don't forget to click Save Changes when you're done.Configure your client to match the settings below:Incoming Mail (POP3) Server - requires SSL:pop.gmail.com
Use SSL: Yes
Port: 995Outgoing Mail (SMTP) Server - requires TLS or SSL:smtp.gmail.com (use authentication)
Use Authentication: Yes
Port for TLS/STARTTLS: 587
Port for SSL: 465Account Name:your full email address (including @gmail.com or@your_domain.com)Email Address:your email address (username@gmail.com orusername@your_domain.com)Password:your Gmail password

Unless you're using recent mode to download mail to multiple clients, make sure you've opted not to leave messages on the server. Your Gmail settings determine whether or not messages stay on the server, so this setting in your client won't affect how Gmail handles your mail.

Please note that if your client does not support SMTP authentication, you won't be able to send mail through your client using your Gmail address.

Also, if you're having trouble sending mail but you've confirmed that encyrption is active for SMTP in your mail client, try to configure your SMTP server on a different port: 465 or 587.

You're now ready to use POP with your Gmail address.

Mar 08, 2011 | Samsung S3653 Cell Phone

2 Answers

How to setup push mail for samsung monte phone on gmail


I'm not sure if this is of any help
to anyone but these are the steps
I used to set up email on my
Monte. I'm using an old hotmail
account that didn't support IMAP
or SMTP properly.
1.Set Up a GMail account eg.
someone@gmail.com
2.Set GMail to allow IMAP via the
settings link the the top right
hand corner. (under Forwarding
and POP/IMAP)
3.Under accounts and import set
up the send mail as to send mail as
someone@hotmail.co.uk. Set this
to default send adress
4.In the same tab under check
mail using pop3 set up the pop3 to
recieve from someone@
hotmail.co.uk
5.Under Email Accounts on the
Monte set up email with the
following charecteristics:
Account Name: Hotmail
SMTP Server: smtp.gmail.com
SMTP Port: 465
Secure Connection: SSL
Incoming Server Type: IMAP4
IMAP4 Server: imap.gmail.com
IMAP Port: 993
APOP login: greyed out
Secure Connection: SSL
Download Limit: 500
IMAP4 incoming email: New
Retrieving option: Whole Message
Keep on server: checked
My email adress: someone@
hotmail.co.uk (This is the adress
the phone puts in the from line of
an email)
Username: someone@gmail.com
Password: gmail password
Pop before smtp: greyed out
SMTP auth: checked
Same as POP3/IMAP4: checked
Username: greyed out
Passowrd: greyed out
This should allow you to recieve
new messages from the time you
set up the gmail account on your
phone and to send emails with all
the appearences of coming from
your hotmail account while
actually coming from google's
smtp server. Really do check that
the GMail is set up properly, make
sure it recieves emails adressed
to your hotmail and that it sends
in your hotmail account's name.

Sep 20, 2010 | Health & Beauty

5 Answers

What iis the outgoing/incoming server for gmail?


Google GMail Settings
The Google GMail service offers email client access for retrieving and sending emails through your Gmail account. However, for security reasons, GMail uses POP3 over an SSL connection, so make sure your email client supports encrypted SSL connections.
    Google Gmail Incoming Mail Server (POP3) - pop.gmail.com (SSL enabled, port 995)
    Outgoing Mail Server - use the SMTP mail server address provided by your local ISP or smtp.gmail.com (SSL enabled, port 465)

May 03, 2010 | HP Pavilion dv6000z Notebook

1 Answer

Mozilla Thunderbird setup


    Google Gmail Outgoing Mail Server (SMTP): smtp.gmail.com
    The Gmail SMTP server requires authentication (use the same settings as for the incoming mail server)
    The Google Gmail SMTP Server requires an encrypted connection (SSL) on port 465.
    GMail uses POP3 over an SSL connection, so make sure your email client supports encrypted SSL connections.
      Google Gmail Incoming Mail Server (POP3) - pop.gmail.com (SSL enabled, port 995)Outgoing Mail Server - use the SMTP mail server address provided by your local ISP or smtp.gmail.com (SSL enabled, port 465)

Sep 21, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

138 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14162 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...