()
| 14 | }); |
| 15 | |
| 16 | async function main() { |
| 17 | try { |
| 18 | await transporter.sendMail({ |
| 19 | from: { |
| 20 | name: "BitBox", |
| 21 | address: process.env.EMAIL_ID, |
| 22 | }, |
| 23 | to: userdata.email, |
| 24 | subject: "Welcome to BitBox! 🚀 Join the Developer Community", |
| 25 | text: "Thank you for joining BitBox, your hub for project sharing and collaboration!", |
| 26 | html: ` |
| 27 | <div style="background-color: #f4f4f9; color: #333; padding: 20px; font-family: Arial, sans-serif;"> |
| 28 | <div style="max-width: 600px; margin: 0 auto; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);"> |
| 29 | <h2 style="text-align: center; color: #4a90e2;">Welcome to BitBox, ${userdata.name}!</h2> |
| 30 | <p style="font-size: 16px; line-height: 1.6; color: #555;"> |
| 31 | Hi ${userdata.name}, |
| 32 | </p> |
| 33 | <p style="font-size: 16px; line-height: 1.6; color: #555;"> |
| 34 | Thank you for subscribing to BitBox! We're excited to have you join a growing community of developers who showcase, share, and collaborate on projects. |
| 35 | </p> |
| 36 | <p style="font-size: 16px; line-height: 1.6; color: #555;"> |
| 37 | As a BitBox member, you can: |
| 38 | </p> |
| 39 | <ul style="font-size: 16px; line-height: 1.6; color: #555;"> |
| 40 | <li>📂 <strong>Upload Projects:</strong> Easily upload and showcase your projects on our platform.</li> |
| 41 | <li>🔍 <strong>Discover Projects:</strong> Explore a wide range of innovative projects shared by fellow developers.</li> |
| 42 | <li>🤝 <strong>Collaborate:</strong> Connect with other developers to share feedback and collaborate on projects.</li> |
| 43 | <li>📚 <strong>Learn and Grow:</strong> Learn from shared projects and contribute to the community’s knowledge base.</li> |
| 44 | </ul> |
| 45 | <p style="font-size: 16px; line-height: 1.6; color: #555;"> |
| 46 | Join us as we build a supportive environment where developers can grow, learn, and create together. Welcome aboard! |
| 47 | </p> |
| 48 | <p style="font-size: 16px; line-height: 1.6; color: #555;"> |
| 49 | Warm regards, <br/> |
| 50 | The BitBox Team |
| 51 | </p> |
| 52 | </div> |
| 53 | </div> |
| 54 | `, |
| 55 | }); |
| 56 | console.log("Email sent successfully to " + userdata.email); |
| 57 | } catch (error) { |
| 58 | console.error("Error sending email:", error); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | main(); |
| 63 | }; |
no outgoing calls
no test coverage detected