Skip to content
TheChatArchiveThe Chat Archive
gpt-4-0314· OpenAIAi2 WildChat-4.8M (AI2)

can you write me in html a mail with a button that lead to an external link ?

  1. User

    can you write me in html a mail with a button that lead to an external link ?

  2. Assistant

    Here's a simple HTML email template for a mail with a button that leads to an external link.

    <!DOCTYPE html>
    <html>
    <head>
      <style>
        .button {
          background-color: #4CAF50;
          border: none;
          color: white;
          text-align: center;
          display: inline-block;
          font-size: 16px;
          transition-duration: 0.4s;
          cursor: pointer;
          padding: 10px 24px;
          border-radius: 4px;
          text-decoration: none;
        }
        
        .button:hover {
          background-color: #45a049;
        }
      </style>
    </head>
    <body>
      <h1>Hello,</h1>
      <p>We are glad to share our latest example with you. Please check it out by clicking the button below:</p>
      
      <a href="https://www.example.com" class="button" target="_blank">Visit Example</a>  
    
      <p>Thank you for your time and support!</p>
      <p>Best regards,</p>
      <p>Your Name</p>
    </body>
    </html>
    

    This code creates a simple HTML email with a green button that says "Visit Example" and leads to "https://www.example.com" when clicked. Be sure to replace "https://www.example.com" with the actual link you want to use, and customize the email content as needed.